r212463 - MS ABI: Don't unnecessarily use CGM abstraction
David Majnemer
david.majnemer at gmail.com
Mon Jul 7 08:29:16 PDT 2014
Author: majnemer
Date: Mon Jul 7 10:29:16 2014
New Revision: 212463
URL: http://llvm.org/viewvc/llvm-project?rev=212463&view=rev
Log:
MS ABI: Don't unnecessarily use CGM abstraction
If we are in MicrosoftCXXABI, we don't need to use CGM to get a
TypeDescriptor.
Modified:
cfe/trunk/lib/CodeGen/MicrosoftCXXABI.cpp
Modified: cfe/trunk/lib/CodeGen/MicrosoftCXXABI.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/MicrosoftCXXABI.cpp?rev=212463&r1=212462&r2=212463&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/MicrosoftCXXABI.cpp (original)
+++ cfe/trunk/lib/CodeGen/MicrosoftCXXABI.cpp Mon Jul 7 10:29:16 2014
@@ -2778,7 +2778,7 @@ MSRTTIBuilder::getBaseClassDescriptor(co
// Initialize the BaseClassDescriptor.
llvm::Constant *Fields[] = {
ABI.getImageRelativeConstant(
- CGM.GetAddrOfRTTIDescriptor(Context.getTypeDeclType(Class.RD))),
+ ABI.getAddrOfRTTIDescriptor(Context.getTypeDeclType(Class.RD))),
llvm::ConstantInt::get(CGM.IntTy, Class.NumBases),
llvm::ConstantInt::get(CGM.IntTy, Class.OffsetInVBase),
llvm::ConstantInt::get(CGM.IntTy, VBPtrOffset),
More information about the cfe-commits
mailing list