[llvm] CallPromotionUtils: Correctly use IndexSize when determining the bit width of pointer offsets. (PR #119138)
Owen Anderson via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 10 17:01:12 PST 2024
================
@@ -712,7 +712,7 @@ bool llvm::tryPromoteCall(CallBase &CB) {
VTablePtrLoad, VTablePtrLoad->getParent(), BBI, 0, nullptr, nullptr);
if (!VTablePtr)
return false; // No vtable found.
- APInt VTableOffsetGVBase(DL.getTypeSizeInBits(VTablePtr->getType()), 0);
----------------
resistor wrote:
Thanks. I'm doing a bootstrap build now to try to extract a test case. I'll put up a new PR with the test and the fix once I have that.
https://github.com/llvm/llvm-project/pull/119138
More information about the llvm-commits
mailing list