aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>2023-02-23 21:47:48 +0000
committerKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>2023-02-23 22:50:43 +0000
commit5a4f193afa0d73f7ec459648d8f02535577dd604 (patch)
treec8e72258e729179edb7c9ba294e07bb47572a433 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parentf78c34346635e25919e2777b1b1cbb9627d5ad43 (diff)
downloadllvm-5a4f193afa0d73f7ec459648d8f02535577dd604.zip
llvm-5a4f193afa0d73f7ec459648d8f02535577dd604.tar.gz
llvm-5a4f193afa0d73f7ec459648d8f02535577dd604.tar.bz2
Add tests to reproduce pointer/index width confusion crashes
Some calls to GEPOperator::accumulateConstantOffset(APInt) passed the pointer bitwidth as the width of the APInt, while the function asserts that the width of its argument is equal to the index width of the GEP pointer input. These values are almost always the same, so mixing up which call to use doesn't usually cause issues. However, when dealing with data layouts where these values are different, the passes tested here can crash. This will be fixed in D143437 . Differential Revision: https://reviews.llvm.org/D144673
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions