[llvm-commits] [124493] Fix a bug that triggers with Ada, patch by Duncan Sands!

clattner at apple.com clattner at apple.com
Fri Mar 2 18:15:47 PST 2007


Revision: 124493
Author:   clattner
Date:     2007-03-02 18:15:45 -0800 (Fri, 02 Mar 2007)

Log Message:
-----------
Fix a bug that triggers with Ada, patch by Duncan Sands!

Modified Paths:
--------------
    apple-local/branches/llvm/gcc/llvm-convert.cpp

Modified: apple-local/branches/llvm/gcc/llvm-convert.cpp
===================================================================
--- apple-local/branches/llvm/gcc/llvm-convert.cpp	2007-03-03 02:13:46 UTC (rev 124492)
+++ apple-local/branches/llvm/gcc/llvm-convert.cpp	2007-03-03 02:15:45 UTC (rev 124493)
@@ -1424,7 +1424,8 @@
       tree RealVar = DECL_ORIGIN(Var);
       
       // If we haven't already emitted the var, do so now.
-      if (!TREE_ASM_WRITTEN(RealVar) && !lang_hooks.expand_decl(RealVar))
+      if (!TREE_ASM_WRITTEN(RealVar) && !lang_hooks.expand_decl(RealVar) &&
+          TREE_CODE (Var) == VAR_DECL)
         rest_of_decl_compilation(RealVar, 0, 0);
       continue;
     }





More information about the llvm-commits mailing list