[llvm-commits] [llvm-gcc-4.2] r50719 - /llvm-gcc-4.2/trunk/gcc/tree-inline.c
Duncan Sands
baldrick at free.fr
Tue May 6 07:58:31 PDT 2008
Author: baldrick
Date: Tue May 6 09:58:31 2008
New Revision: 50719
URL: http://llvm.org/viewvc/llvm-project?rev=50719&view=rev
Log:
Fix PR2292: don't barf on PARM_DECL.
Modified:
llvm-gcc-4.2/trunk/gcc/tree-inline.c
Modified: llvm-gcc-4.2/trunk/gcc/tree-inline.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/tree-inline.c?rev=50719&r1=50718&r2=50719&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/tree-inline.c (original)
+++ llvm-gcc-4.2/trunk/gcc/tree-inline.c Tue May 6 09:58:31 2008
@@ -1267,7 +1267,7 @@
/* The return node can suddenly become multiple assignment. Because of this
* conservatively don't consider this thing for SSA form anymore.
*/
- if (DECL_P (var))
+ if (TREE_CODE (var) == VAR_DECL)
DECL_GIMPLE_FORMAL_TEMP_P (var) = 0;
#endif
/* LLVM LOCAL end */
More information about the llvm-commits
mailing list