forked from OSchip/llvm-project
[X86] Use isInt<8> to simplify some code. NFC
llvm-svn: 368126
This commit is contained in:
parent
c6551bf013
commit
624980037d
|
@ -287,7 +287,7 @@ bool X86AsmBackend::fixupNeedsRelaxation(const MCFixup &Fixup,
|
|||
const MCRelaxableFragment *DF,
|
||||
const MCAsmLayout &Layout) const {
|
||||
// Relax if the value is too big for a (signed) i8.
|
||||
return int64_t(Value) != int64_t(int8_t(Value));
|
||||
return !isInt<8>(Value);
|
||||
}
|
||||
|
||||
// FIXME: Can tblgen help at all here to verify there aren't other instructions
|
||||
|
|
Loading…
Reference in New Issue