Directly get the canonical Type instead of going around through a CanQualType temporary, NFC.

llvm-svn: 263635
This commit is contained in:
Yaron Keren 2016-03-16 12:14:43 +00:00
parent 632eac3428
commit ebd142692d
1 changed files with 1 additions and 1 deletions

View File

@ -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;