]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-ssanames: Fix pasto in get_known_nonzero_bits function comment
authorJakub Jelinek <jakub@redhat.com>
Wed, 19 Nov 2025 10:52:16 +0000 (11:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 19 Nov 2025 10:52:16 +0000 (11:52 +0100)
get_known_nonzero_bits_1 function comment a few lines earlier says
correctly it returns 0 for unknown (unlike get_nonzero_bits{,_1}
which return -1 for unknown).

2025-11-19  Jakub Jelinek  <jakub@redhat.com>

* tree-ssanames.cc (get_known_nonzero_bits): Fix a pasto in
function comment, this function returns 0 if unknown rather
than -1.

gcc/tree-ssanames.cc

index e3788f00f7f233535dc6ec04c1cb2d9ac6e4083d..f7885ea0d102f01a08e5a65319cb4b2d8c198b4c 100644 (file)
@@ -594,7 +594,7 @@ get_known_nonzero_bits_1 (const_tree name)
 }
 
 /* Return a wide_int with known non-zero bits in SSA_NAME
-   NAME, the constant for INTEGER_CST, or -1 if unknown.
+   NAME, the constant for INTEGER_CST, or 0 if unknown.
    In addition to what get_known_nonzero_bits_1 handles, this handles one
    level of BIT_IOR_EXPR, either as a def_stmt or tree directly.  */