forked from OSchip/llvm-project
MS ABI: Don't unnecessarily use CGM abstraction
If we are in MicrosoftCXXABI, we don't need to use CGM to get a TypeDescriptor. llvm-svn: 212463
This commit is contained in:
parent
26a90f85f7
commit
ccef89db65
|
@ -2778,7 +2778,7 @@ MSRTTIBuilder::getBaseClassDescriptor(const MSRTTIClass &Class) {
|
|||
// 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),
|
||||
|
|
Loading…
Reference in New Issue