[PATCH][match-and-simplify] Fix cut&paste error

Richard Biener rguenther@suse.de
Wed Jun 4 12:17:00 GMT 2014


Committed.  Hopefully that restores bootstrap ...

Richard.

2014-06-04  Richard Biener  <rguenther@suse.de>

	* gimple-match-head.c (gimple_match_and_simplify): Fix cut&paste
	error.

Index: gcc/gimple-match-head.c
===================================================================
--- gcc/gimple-match-head.c	(revision 211226)
+++ gcc/gimple-match-head.c	(working copy)
@@ -604,7 +604,7 @@ gimple_match_and_simplify (gimple stmt,
 		if (!arg1)
 		  return false;
 	      }
-	    tree arg2 = gimple_call_arg (stmt, 0);
+	    tree arg2 = gimple_call_arg (stmt, 1);
 	    if (valueize && TREE_CODE (arg2) == SSA_NAME)
 	      {
 		arg2 = valueize (arg2);



More information about the Gcc-patches mailing list