summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-02-27 08:23:23 +0000
committerEric Christopher <echristo@apple.com>2012-02-27 08:23:23 +0000
commit7a5fdd874633c868d03b0b68e086fcc131483dd6 (patch)
treee39fcfb5d9cf02e7c6ae161274f5004dc11907c8 /clang/lib/CodeGen
parent5bd52c1b3e722de746035da8da3e291b846e8452 (diff)
downloadbcm5719-llvm-7a5fdd874633c868d03b0b68e086fcc131483dd6.tar.gz
bcm5719-llvm-7a5fdd874633c868d03b0b68e086fcc131483dd6.zip
ObjcInterfaceTypes are also complete types for the type cache.
Fixes rdar://10934887 llvm-svn: 151519
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index d1dbe41dab5..1d27c191336 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1244,9 +1244,9 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty,
Line, Size, Align, Flags,
llvm::DIArray(), RuntimeLang);
- // Otherwise, insert it into the TypeCache so that recursive uses will find
- // it.
- TypeCache[QualType(Ty, 0).getAsOpaquePtr()] = RealDecl;
+ // Otherwise, insert it into the CompletedTypeCache so that recursive uses
+ // will find it and we're emitting the complete type.
+ CompletedTypeCache[QualType(Ty, 0).getAsOpaquePtr()] = RealDecl;
// Push the struct on region stack.
llvm::MDNode *MN = RealDecl;
llvm::TrackingVH<llvm::MDNode> FwdDeclNode = MN;
OpenPOWER on IntegriCloud