forked from OSchip/llvm-project
Directly get the canonical Type instead of going around through a CanQualType temporary, NFC.
llvm-svn: 263635
This commit is contained in:
parent
632eac3428
commit
ebd142692d
|
@ -2883,7 +2883,7 @@ static llvm::GlobalVariable::LinkageTypes getTypeInfoLinkage(CodeGenModule &CGM,
|
|||
|
||||
llvm::Constant *ItaniumRTTIBuilder::BuildTypeInfo(QualType Ty, bool Force) {
|
||||
// We want to operate on the canonical type.
|
||||
Ty = CGM.getContext().getCanonicalType(Ty);
|
||||
Ty = Ty.getCanonicalType();
|
||||
|
||||
// Check if we've already emitted an RTTI descriptor for this type.
|
||||
SmallString<256> Name;
|
||||
|
|
Loading…
Reference in New Issue