]> git.ipfire.org Git - thirdparty/gcc.git/commit
gimple-ssa-sprintf: Fix typo in range check
authorSiddhesh Poyarekar <siddhesh@gotplt.org>
Thu, 25 Jul 2024 23:30:38 +0000 (19:30 -0400)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 28 Jul 2024 17:06:01 +0000 (19:06 +0200)
commite21f9f6054e16bc2d7cd3bc0226f53a758d92fe0
tree34910c760d076116c4abfe8ab1bae0c1a7405fe2
parent9699dc4b4292a634e18fad2f323dcd34c292171b
gimple-ssa-sprintf: Fix typo in range check

The code to scale ranges for wide chars in format_string incorrectly
checks range.likely to scale range.unlikely, which is a copy-paste typo
from the immediate previous condition.

gcc/ChangeLog:

* gimple-ssa-sprintf.cc (format_string): Fix type in range check
for UNLIKELY for wide chars.

Signed-off-by: Siddhesh Poyarekar <siddhesh@gotplt.org>
gcc/gimple-ssa-sprintf.cc