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; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits