This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[tree-ssa] fix stmt value in substitute_and_fold


Committed as obvious.

Brian
---

2004-02-17  Brian Booth  <bbooth@redhat.com>

	* tree-ssa-ccp.c (substitute_and_fold): Update stmt after
	calling fold_stmt.
Index: tree-ssa-ccp.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-ccp.c,v
retrieving revision 1.1.2.139
diff -c -p -r1.1.2.139 tree-ssa-ccp.c
*** tree-ssa-ccp.c	13 Feb 2004 11:15:57 -0000	1.1.2.139
--- tree-ssa-ccp.c	17 Feb 2004 16:23:31 -0000
*************** substitute_and_fold (void)
*** 385,390 ****
--- 385,391 ----
  	  if (replace_uses_in (stmt, &replaced_address))
  	    {
  	      fold_stmt (bsi_stmt_ptr (i));
+ 	      stmt = bsi_stmt(i);
  	      modify_stmt (stmt);
  	      if (replaced_address)
  		mark_new_vars_to_rename (stmt, vars_to_rename);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]