[llvm-commits] [llvm-gcc-4-2] r39877 - /llvm-gcc-4-2/trunk/gcc/tree.h

Duncan Sands baldrick at free.fr
Sun Jul 15 10:02:38 PDT 2007


Author: baldrick
Date: Sun Jul 15 12:02:38 2007
New Revision: 39877

URL: http://llvm.org/viewvc/llvm-project?rev=39877&view=rev
Log:
Condition DECL_LLVM_SET_P on HAS_RTL_P, as in DECL_RTL_SET_P.
This makes print-tree work in the presence of FIELD_DECLs which
can no longer hold RTL.

Modified:
    llvm-gcc-4-2/trunk/gcc/tree.h

Modified: llvm-gcc-4-2/trunk/gcc/tree.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4-2/trunk/gcc/tree.h?rev=39877&r1=39876&r2=39877&view=diff

==============================================================================
--- llvm-gcc-4-2/trunk/gcc/tree.h (original)
+++ llvm-gcc-4-2/trunk/gcc/tree.h Sun Jul 15 12:02:38 2007
@@ -2837,7 +2837,7 @@
 
 /* Returns nonzero if the DECL_LLVM for NODE has already been set.  */
 extern bool llvm_set_decl_p(tree);
-#define DECL_LLVM_SET_P(NODE) (llvm_set_decl_p(NODE))
+#define DECL_LLVM_SET_P(NODE) (HAS_RTL_P (NODE) && llvm_set_decl_p(NODE))
 /* Copy the LLVM from NODE1 to NODE2.  If the LLVM was not set for
    NODE1, it will not be set for NODE2; this is a lazy copy.  */
 #define COPY_DECL_LLVM(NODE1, NODE2)  \





More information about the llvm-commits mailing list