From 624980037d1a77f9227d7da9de6073c27c4473d5 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 7 Aug 2019 06:17:55 +0000 Subject: [PATCH] [X86] Use isInt<8> to simplify some code. NFC llvm-svn: 368126 --- llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp index 54413fa..ff42996 100644 --- a/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp +++ b/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp @@ -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 -- 2.7.4