]> granicus.if.org Git - clang/commitdiff
Directly get the canonical Type instead of going around through a CanQualType tempora...
authorYaron Keren <yaron.keren@gmail.com>
Wed, 16 Mar 2016 12:14:43 +0000 (12:14 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Wed, 16 Mar 2016 12:14:43 +0000 (12:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263635 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/ItaniumCXXABI.cpp

index 1f982bc21ecf1f5f7fb296d22224b9c6039d47f7..5f72af83b124ce6af35de9474bbcde5ebfc5e733 100644 (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;