]> granicus.if.org Git - clang/commitdiff
Fix up debug information for block pointers a bit more.
authorMike Stump <mrs@apple.com>
Fri, 2 Oct 2009 02:23:37 +0000 (02:23 +0000)
committerMike Stump <mrs@apple.com>
Fri, 2 Oct 2009 02:23:37 +0000 (02:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83231 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 0b386841f19dca5369a04bf209710b6829174b2c..c937e8ec67ecdcc86a5905c0504d315ec9243cde 100644 (file)
@@ -350,8 +350,10 @@ llvm::DIType CGDebugInfo::CreateType(const BlockPointerType *Ty,
   FieldOffset += FieldSize;
   Elements = DebugFactory.GetOrCreateArray(EltTys.data(), EltTys.size());
 
+  unsigned Flags = llvm::DIType::FlagAppleBlock;
+
   EltTy = DebugFactory.CreateCompositeType(Tag, Unit, "__block_literal_generic",
-                                           DefUnit, 0, FieldOffset, 0, 0, 0,
+                                           DefUnit, 0, FieldOffset, 0, 0, Flags,
                                            llvm::DIType(), Elements);
 
   BlockLiteralGenericSet = true;