aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/genmatch.cc2
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;