]> 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)
committerSiddhesh Poyarekar <siddhesh@gotplt.org>
Fri, 26 Jul 2024 17:34:11 +0000 (13:34 -0400)
commit6fe1e1fad120350b9a392a7afb728d8418e79110
treed90e3715858e4c9f952f90c4af7bc736cdd4f3f8
parent795021d9bc8546ccc51bacc899b6077c6928067b
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