diff options
author | Eric Christopher <echristo@apple.com> | 2011-11-29 23:57:40 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-11-29 23:57:40 +0000 |
commit | d5a3b7804f1594c9f21c7f2cee0920a66feeb93a (patch) | |
tree | e4798b211e008dcb288a3a2f8f4a3d2af984f587 /lib/CodeGen/CGDebugInfo.cpp | |
parent | 5c2a1f741e133fcad4782b855a18d3b220243b11 (diff) |
Make sure that forward declarations are marked as such in the debug info
for the structure type.
rdar://10499337
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145461 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index efffd2ca4c..922b725d9d 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -1214,7 +1214,8 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty, if (ID->isForwardDecl()) { llvm::DIType FwdDecl = DBuilder.createStructType(Unit, ID->getName(), - DefUnit, Line, 0, 0, 0, + DefUnit, Line, 0, 0, + llvm::DIDescriptor::FlagFwdDecl, llvm::DIArray(), RuntimeLang); return FwdDecl; } |