forked from OSchip/llvm-project
parent
63bdb56274
commit
290b052d43
|
@ -732,7 +732,7 @@ llvm::DIType CGDebugInfo::getOrCreateType(QualType Ty,
|
|||
if (Ty.isNull())
|
||||
return llvm::DIType();
|
||||
|
||||
// Check to see if the compile unit already has created this type.
|
||||
// Check TypeCache first.
|
||||
llvm::DIType &Slot = TypeCache[Ty.getAsOpaquePtr()];
|
||||
if (!Slot.isNull()) return Slot;
|
||||
|
||||
|
|
Loading…
Reference in New Issue