diff options
author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2021-11-18 22:40:12 +0100 |
---|---|---|
committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2021-12-07 12:13:03 -0600 |
commit | 5bf4f2acb8d658904304460a937f24a071d9c9a7 (patch) | |
tree | 7fb630c35f7fb11592c69727e4bb2d0bcd4b66af /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | fd722c5959b98a706153f0e9e5111721efbfad41 (diff) | |
download | llvm-5bf4f2acb8d658904304460a937f24a071d9c9a7.zip llvm-5bf4f2acb8d658904304460a937f24a071d9c9a7.tar.gz llvm-5bf4f2acb8d658904304460a937f24a071d9c9a7.tar.bz2 |
[SystemZ] Add range checks for PC-relative fixups.
The AsmParser checks the range of a PC-relative operand, but only if it is
immediate.
This patch adds range checks for operands in applyFixup(), at which point the
offset to a label is known.
The diagnostic message for an operand that is out of range is explicit (with
given value and min/max limits). This is now also done for displacement
fixups.
Review: Ulrich Weigand
Differential Revision: https://reviews.llvm.org/D114194
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions