[llvm-commits] [dragonegg] r152922 -	/dragonegg/trunk/src/Convert.cpp
    Duncan Sands 
    baldrick at free.fr
       
    Fri Mar 16 06:42:20 PDT 2012
    
    
  
Author: baldrick
Date: Fri Mar 16 08:42:19 2012
New Revision: 152922
URL: http://llvm.org/viewvc/llvm-project?rev=152922&view=rev
Log:
DECL_CHAIN doesn't exist in gcc-4.5.  Replace with TREE_CHAIN, which does
the same thing but with less checking.
Modified:
    dragonegg/trunk/src/Convert.cpp
Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=152922&r1=152921&r2=152922&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Fri Mar 16 08:42:19 2012
@@ -1113,7 +1113,7 @@
 /// EmitVariablesInScope - Output a declaration for every variable in the
 /// given scope.
 void TreeToLLVM::EmitVariablesInScope(tree scope) {
-  for (tree t = BLOCK_VARS(scope); t; t = DECL_CHAIN (t))
+  for (tree t = BLOCK_VARS(scope); t; t = TREE_CHAIN (t))
     if (TREE_CODE(t) == VAR_DECL)
       // If this is just the rotten husk of a variable that the gimplifier
       // eliminated all uses of, but is preserving for debug info, ignore it.
    
    
More information about the llvm-commits
mailing list