ObjcInterfaceTypes are also complete types for the type cache.

Fixes rdar://10934887

llvm-svn: 151519
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index d1dbe41..1d27c19 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1244,9 +1244,9 @@
                               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;