From: Yaron Keren Date: Wed, 16 Mar 2016 12:14:43 +0000 (+0000) Subject: Directly get the canonical Type instead of going around through a CanQualType tempora... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=385c9ce0c66f872df334180eb540a60729abad4d;p=clang Directly get the canonical Type instead of going around through a CanQualType temporary, NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263635 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/ItaniumCXXABI.cpp b/lib/CodeGen/ItaniumCXXABI.cpp index 1f982bc21e..5f72af83b1 100644 --- a/lib/CodeGen/ItaniumCXXABI.cpp +++ b/lib/CodeGen/ItaniumCXXABI.cpp @@ -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;