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

Yaron Keren via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 16 05:14:44 PDT 2016


Author: yrnkrn
Date: Wed Mar 16 07:14:43 2016
New Revision: 263635

URL: http://llvm.org/viewvc/llvm-project?rev=263635&view=rev
Log:
Directly get the canonical Type instead of going around through a CanQualType temporary, NFC.


Modified:
    cfe/trunk/lib/CodeGen/ItaniumCXXABI.cpp

Modified: cfe/trunk/lib/CodeGen/ItaniumCXXABI.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/ItaniumCXXABI.cpp?rev=263635&r1=263634&r2=263635&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/ItaniumCXXABI.cpp (original)
+++ cfe/trunk/lib/CodeGen/ItaniumCXXABI.cpp Wed Mar 16 07:14:43 2016
@@ -2883,7 +2883,7 @@ static llvm::GlobalVariable::LinkageType
 
 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;




More information about the cfe-commits mailing list