diff options
author | David Tellenbach <david.tellenbach@arm.com> | 2019-10-28 18:57:53 +0000 |
---|---|---|
committer | David Tellenbach <david.tellenbach@arm.com> | 2019-10-28 18:58:45 +0000 |
commit | e3a45a24d1077e2afc917024032715afa70fb2ac (patch) | |
tree | 3ed3093e7e6016b6e6ec27e91077f9484f2e40f4 /llvm/lib/CodeGen | |
parent | e59f7488c772f9e5fe4c8acd4da7312493fecb07 (diff) | |
download | bcm5719-llvm-e3a45a24d1077e2afc917024032715afa70fb2ac.tar.gz bcm5719-llvm-e3a45a24d1077e2afc917024032715afa70fb2ac.zip |
[ARM][Thumb2InstrInfo] Fix default `0` opcode when rewriting frame indices
The static functions `positiveOffsetOpcode`, `negativeOffsetOpcode` and
`immediateOffsetOpcode` (lib/Target/ARM/Thumb2InstrInfo.cpp) currently can
return `0` as default opcode which is meaningless in this situation.
This patch replaces this default value by llvm_unreachable.
Reviewers: t.p.northover, tellenbach
Reviewed By: tellenbach
Subscribers: tellenbach, kristof.beyls, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D69432
Patch By: Lorenzo Casalino <lorenzo.casalino93@gmail.com>
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions