diff options
| author | Björn Pettersson <bjorn.a.pettersson@ericsson.com> | 2023-11-08 11:29:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-08 11:29:12 +0100 |
| commit | 8fc0aca5d1c12482d72fc412cea975de330a78b4 (patch) | |
| tree | 6291c614ac54c670b3d60e68f65c0179438d1da2 /lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py | |
| parent | 3716b5b4bac6ab41291b6558ad0444cbcca04aa3 (diff) | |
[SCEV] Support larger than 64-bit types in ashr(add(shl(x, n), c), m) (#71600)
In commit 5a9a02f67b771fb2edcf06 scalar evolution got support for
computing SCEV:s for (ashr(add(shl(x, n), c), m)) constructs. The code
however used APInt::getZExtValue without first checking that the APInt
would fit inside an uint64_t. When for example using 128-bit types we
ended up in assertion failures (or maybe miscompiles in non-assert
builds).
This patch simply avoid converting from APInt to uint64_t when creating
the truncated constant. We can just truncate the APInt instead.
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions
