diff options
author | Richard Biener <rguenther@suse.de> | 2023-01-09 14:28:03 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-01-09 15:07:49 +0100 |
commit | 46034c46f82dec169fe7fc7c2d82d8321d9a9512 (patch) | |
tree | 92aa661b00e471b62a388b0500efa9bfd58a1130 | |
parent | b1879fb84e78fa2c530e66de43f3dc125820864a (diff) | |
download | gcc-46034c46f82dec169fe7fc7c2d82d8321d9a9512.zip gcc-46034c46f82dec169fe7fc7c2d82d8321d9a9512.tar.gz gcc-46034c46f82dec169fe7fc7c2d82d8321d9a9512.tar.bz2 |
middle-end/108209 - typo in genmatch.cc:commutative_op
The early out for user-id handling indicated commutative
rather than not commutative.
PR middle-end/108209
* genmatch.cc (commutative_op): Fix return value for
user-id with non-commutative first replacement.
-rw-r--r-- | gcc/genmatch.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/genmatch.cc b/gcc/genmatch.cc index fb9e37a..d4cb439 100644 --- a/gcc/genmatch.cc +++ b/gcc/genmatch.cc @@ -496,7 +496,7 @@ commutative_op (id_base *id) { int res = commutative_op (uid->substitutes[0]); if (res < 0) - return 0; + return -1; for (unsigned i = 1; i < uid->substitutes.length (); ++i) if (res != commutative_op (uid->substitutes[i])) return -1; |