diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2016-03-16 12:14:43 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2016-03-16 12:14:43 +0000 |
commit | ebd142692d5485aa9411f9ec40e829009613635e (patch) | |
tree | d79220c787875eb723ed67bdfa4144527f817659 /clang/lib/CodeGen | |
parent | 632eac34281c922bb52d30762bdc7115aa925698 (diff) | |
download | bcm5719-llvm-ebd142692d5485aa9411f9ec40e829009613635e.tar.gz bcm5719-llvm-ebd142692d5485aa9411f9ec40e829009613635e.zip |
Directly get the canonical Type instead of going around through a CanQualType temporary, NFC.
llvm-svn: 263635
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/ItaniumCXXABI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/ItaniumCXXABI.cpp b/clang/lib/CodeGen/ItaniumCXXABI.cpp index 1f982bc21ec..5f72af83b12 100644 --- a/clang/lib/CodeGen/ItaniumCXXABI.cpp +++ b/clang/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; |