diff options
author | Leonard Chan <leonardchan@google.com> | 2020-06-10 13:50:05 -0700 |
---|---|---|
committer | Leonard Chan <leonardchan@google.com> | 2020-06-10 13:50:05 -0700 |
commit | 7201272d4c1b7822c11593ea3ef97bc65b647e54 (patch) | |
tree | 961271d234d5c4624bbf8af2bc04d57af46ac684 /clang/lib/CodeGen/CGClass.cpp | |
parent | 1727c6aab34012f0cefc8a3f29ede5f1f718c832 (diff) | |
download | llvm-7201272d4c1b7822c11593ea3ef97bc65b647e54.zip llvm-7201272d4c1b7822c11593ea3ef97bc65b647e54.tar.gz llvm-7201272d4c1b7822c11593ea3ef97bc65b647e54.tar.bz2 |
Revert "[clang] Frontend components for the relative vtables ABI"
This reverts commit 2e009dbcb3e373a59e6e84dce6d51ae8a29f60a5.
Reverting since there were some test failures on buildbots that used the
new pass manager. ASan and MSan are also finding some bugs in this that
I'll need to address.
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGClass.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp index 1d78b3f..c0980df 100644 --- a/clang/lib/CodeGen/CGClass.cpp +++ b/clang/lib/CodeGen/CGClass.cpp @@ -253,13 +253,8 @@ ApplyNonVirtualAndVirtualOffset(CodeGenFunction &CGF, Address addr, // Compute the offset from the static and dynamic components. llvm::Value *baseOffset; if (!nonVirtualOffset.isZero()) { - llvm::Type *OffsetType = - (CGF.CGM.getTarget().getCXXABI().isItaniumFamily() && - CGF.CGM.getItaniumVTableContext().isRelativeLayout()) - ? CGF.Int32Ty - : CGF.PtrDiffTy; - baseOffset = - llvm::ConstantInt::get(OffsetType, nonVirtualOffset.getQuantity()); + baseOffset = llvm::ConstantInt::get(CGF.PtrDiffTy, + nonVirtualOffset.getQuantity()); if (virtualOffset) { baseOffset = CGF.Builder.CreateAdd(virtualOffset, baseOffset); } |