diff options
author | Nikita Popov <npopov@redhat.com> | 2024-09-23 15:11:02 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2024-09-23 15:13:32 +0200 |
commit | 6f194a6dea4b4067336431e699ea3588417d4b96 (patch) | |
tree | ebe3b9868a16c475ae0ce6265947591db5cfa6ae /llvm/lib/CodeGen/StackProtector.cpp | |
parent | f8f41bf92c92ebc9b113a2a573d12880b86d5af3 (diff) | |
download | llvm-6f194a6dea4b4067336431e699ea3588417d4b96.zip llvm-6f194a6dea4b4067336431e699ea3588417d4b96.tar.gz llvm-6f194a6dea4b4067336431e699ea3588417d4b96.tar.bz2 |
[SimplifyCFG] Avoid truncation in linear map overflow check
This is supposed to test multiplication of the linear multiplifier
with the largest value it can be multiplied with. However, if
we truncate TableSize-1 here, it might not actually be the largest
value. I think in practice this still works out, because in cases
where we'd truncate the value here we'd also fail the NonMonotonic
check. But to match the intent of the code, we should treat the
truncating case as overflowing.
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions