]> granicus.if.org Git - clang/commitdiff
Fix clang breakage, CGF can be null in this context.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 6 Aug 2009 01:24:27 +0000 (01:24 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 6 Aug 2009 01:24:27 +0000 (01:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78269 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExprConstant.cpp

index eb9c982b40bfa9a04ab5490e25a60334688aec59..047fecdc207885d8098be17e40aa93262750a176 100644 (file)
@@ -340,7 +340,7 @@ public:
       return 0;
     
     llvm::Constant *Result = 
-      llvm::ConstantStruct::get(CGF->getLLVMContext(),
+      llvm::ConstantStruct::get(CGM.getLLVMContext(),
                                 Builder.Elements, Builder.Packed);
 
     assert(llvm::RoundUpToAlignment(Builder.NextFieldOffsetInBytes,