From d18fcc7a227f299f6451e2f630e8a83524ac57b2 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 15 Aug 2013 18:59:44 +0000 Subject: [PATCH] DebugInfo: remove unnecessary type registration This happens in the caller a few frames up anyway. llvm-svn: 188475 --- clang/lib/CodeGen/CGDebugInfo.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 8eb89871c559..81354b86cab5 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1418,7 +1418,6 @@ llvm::DIType CGDebugInfo::CreateType(const RecordType *Ty, bool Declaration) { llvm::DIDescriptor FDContext = getContextDescriptor(cast(RD->getDeclContext())); llvm::DIType RetTy = getOrCreateRecordFwdDecl(RD, FDContext); - TypeCache[QualType(Ty, 0).getAsOpaquePtr()] = RetTy; return RetTy; } -- 2.34.1