[cfe-commits] r78269 - /cfe/trunk/lib/CodeGen/CGExprConstant.cpp
Daniel Dunbar
daniel at zuster.org
Wed Aug 5 18:24:38 PDT 2009
Author: ddunbar
Date: Wed Aug 5 20:24:27 2009
New Revision: 78269
URL: http://llvm.org/viewvc/llvm-project?rev=78269&view=rev
Log:
Fix clang breakage, CGF can be null in this context.
Modified:
cfe/trunk/lib/CodeGen/CGExprConstant.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprConstant.cpp?rev=78269&r1=78268&r2=78269&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprConstant.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprConstant.cpp Wed Aug 5 20:24:27 2009
@@ -340,7 +340,7 @@
return 0;
llvm::Constant *Result =
- llvm::ConstantStruct::get(CGF->getLLVMContext(),
+ llvm::ConstantStruct::get(CGM.getLLVMContext(),
Builder.Elements, Builder.Packed);
assert(llvm::RoundUpToAlignment(Builder.NextFieldOffsetInBytes,
More information about the cfe-commits
mailing list