]> granicus.if.org Git - clang/commitdiff
Trying to unbreak buildbot.
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 5 Aug 2010 15:52:12 +0000 (15:52 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 5 Aug 2010 15:52:12 +0000 (15:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110339 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCMac.cpp

index 0bfc94eaaf5d4e49c896f4b8da0b13a97f5d713b..a453ebb4b694e700ddaaaa710d6b8498b94e0032 100644 (file)
@@ -1711,7 +1711,8 @@ llvm::Constant *CGObjCCommonMac::GCBlockLayout(CodeGen::CodeGenFunction &CGF,
               const llvm::SmallVectorImpl<const BlockDeclRefExpr *> &DeclRefs) {
   llvm::Constant *NullPtr = 
     llvm::Constant::getNullValue(llvm::Type::getInt8PtrTy(VMContext));
-  if (DeclRefs.empty())
+  if ((CGM.getLangOptions().getGCMode() == LangOptions::NonGC) ||
+      DeclRefs.empty())
     return NullPtr;
   SkipIvars.clear();
   IvarsInfo.clear();