diff options
author | Devang Patel <dpatel@apple.com> | 2009-11-16 21:06:35 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-11-16 21:06:35 +0000 |
commit | 9464ec45f97c2b7dccbac4f5fd5b30d30e2cfc60 (patch) | |
tree | e98e9723587d7cea00d6889b75394c71498d65ef /lib/CodeGen/CGDebugInfo.cpp | |
parent | 14d6365b6d927ec6f42293b05a713e3f2a262677 (diff) |
Use TrackingVH to hold forward decl. This one is for RecordType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 41ffddd23a..6141800d4f 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -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. |