]> granicus.if.org Git - clang/commitdiff
Use TrackingVH to hold forward decl. This one is for RecordType.
authorDevang Patel <dpatel@apple.com>
Mon, 16 Nov 2009 21:06:35 +0000 (21:06 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 16 Nov 2009 21:06:35 +0000 (21:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88963 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 41ffddd23aa438363067778c1d7d231b72515521..6141800d4ffff599e342157d1607bd4d261bc502 100644 (file)
@@ -493,6 +493,7 @@ llvm::DIType CGDebugInfo::CreateType(const RecordType *Ty,
   llvm::TrackingVH<llvm::MDNode> FwdDeclNode = FwdDecl.getNode();
   // Otherwise, insert it into the TypeCache so that recursive uses will find
   // it.
+  llvm::TrackingVH<llvm::MDNode> FwdDeclNode = FwdDecl.getNode();
   TypeCache[QualType(Ty, 0).getAsOpaquePtr()] = FwdDecl.getNode();
 
   // Convert all the elements.