diff options
author | Owen Anderson <resistor@mac.com> | 2024-12-11 16:49:48 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-11 16:49:48 +1300 |
commit | ab15976173e45fd02eb61e922a95ad1f5127c9a0 (patch) | |
tree | f6b7a5e27039eb20364da72ef349bd9c55512401 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 77b6910b272c254ad7dd96420a7cc41d917b8a9e (diff) | |
download | llvm-ab15976173e45fd02eb61e922a95ad1f5127c9a0.zip llvm-ab15976173e45fd02eb61e922a95ad1f5127c9a0.tar.gz llvm-ab15976173e45fd02eb61e922a95ad1f5127c9a0.tar.bz2 |
CallPromotionUtils: Correctly use IndexSize when determining the bit width of pointer offsets. (#119483)
This reapplies #119138 with a defensive fix for the assertion failure
when building libcxx.
Unfortunately the failure does not reproduce on my machine, so I am not
able to extract a test case.
The key insight for the fix comes from Jessica Clarke, who observes that
`VTablePtr` may, in fact,
not be a pointer on return from `FindAvailableLoadedValue`.
Co-authored-by: Alexander Richardson <alexander.richardson@cl.cam.ac.uk>
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions