forked from OSchip/llvm-project
DebugInfo: remove unnecessary type registration
This happens in the caller a few frames up anyway. llvm-svn: 188475
This commit is contained in:
parent
d816e2d3b0
commit
d18fcc7a22
|
@ -1418,7 +1418,6 @@ llvm::DIType CGDebugInfo::CreateType(const RecordType *Ty, bool Declaration) {
|
|||
llvm::DIDescriptor FDContext =
|
||||
getContextDescriptor(cast<Decl>(RD->getDeclContext()));
|
||||
llvm::DIType RetTy = getOrCreateRecordFwdDecl(RD, FDContext);
|
||||
TypeCache[QualType(Ty, 0).getAsOpaquePtr()] = RetTy;
|
||||
return RetTy;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue