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
7.2 KiB
7.2 KiB