diff options
author | pvellien <pvellien@amd.com> | 2022-01-18 09:27:40 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-01-18 09:30:54 +0100 |
commit | 4e1c2077262e0e7c708da8077874c2c022a86adc (patch) | |
tree | a9a1954247a294f8fc60e784eda7ca795b59239f /lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | |
parent | 9c195bae31c4eefc3e5360cefb4f601388a4f6d9 (diff) | |
download | llvm-4e1c2077262e0e7c708da8077874c2c022a86adc.zip llvm-4e1c2077262e0e7c708da8077874c2c022a86adc.tar.gz llvm-4e1c2077262e0e7c708da8077874c2c022a86adc.tar.bz2 |
[SimplifyCFG] Fix assertion failure when reusing table switch comparison
After D116332, some icmps no longer fold with the target-independent
constant folder. The SimplifyCFG code assumed that the comparison
would always fold, which is not guaranteed. Explicitly check that the
result is either true or false.
Differential Revision: https://reviews.llvm.org/D117184
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp')
0 files changed, 0 insertions, 0 deletions