aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorLuke Lau <luke@igalia.com>2024-07-30 12:16:07 +0800
committerGitHub <noreply@github.com>2024-07-30 12:16:07 +0800
commite90c21831f375d0469b4213ab71cc7de0cd5ab20 (patch)
tree784d7511f12908edf5375008888bd27655b2274b /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent8425aa24d802c73e24368a81a4a96afc158497aa (diff)
downloadllvm-e90c21831f375d0469b4213ab71cc7de0cd5ab20.zip
llvm-e90c21831f375d0469b4213ab71cc7de0cd5ab20.tar.gz
llvm-e90c21831f375d0469b4213ab71cc7de0cd5ab20.tar.bz2
[RISCV] Use APInt in isSimpleVIDSequence to account for index overflow (#100072)
At zvl1024b, we may have legal fixed length vectors where a vid.v would overflow at i8, e.g. <512 x i8>. When lowering constant build_vectors, isSimpleVIDSequence used uint64_t to model the vid.v sequence which meant it didn't account for the fact that it could overflow in these larger types. This patch fixes it by modelling the sequence with an SEW-wide APInt so if it does overflow the loop that checks/calculates the addend will detect it and bail. Fixes #99729
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions