]> granicus.if.org Git - clang/commitdiff
ObjcInterfaceTypes are also complete types for the type cache.
authorEric Christopher <echristo@apple.com>
Mon, 27 Feb 2012 08:23:23 +0000 (08:23 +0000)
committerEric Christopher <echristo@apple.com>
Mon, 27 Feb 2012 08:23:23 +0000 (08:23 +0000)
Fixes rdar://10934887

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151519 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index d1dbe41dab551c6f9f86eeb24d7adf98e43a572f..1d27c191336ac181463607bb52c85df6449073a4 100644 (file)
@@ -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;