From: Mike Stump Date: Fri, 2 Oct 2009 02:23:37 +0000 (+0000) Subject: Fix up debug information for block pointers a bit more. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=944e705766490162a5c56b2d4452a8b23f5e632e;p=clang Fix up debug information for block pointers a bit more. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83231 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 0b386841f1..c937e8ec67 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -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;