From: Eric Christopher Date: Mon, 27 Feb 2012 08:23:23 +0000 (+0000) Subject: ObjcInterfaceTypes are also complete types for the type cache. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af3db7d9e4a702d8f072ae97f793be42177e898b;p=clang ObjcInterfaceTypes are also complete types for the type cache. Fixes rdar://10934887 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151519 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index d1dbe41dab..1d27c19133 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/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 FwdDeclNode = MN;