From ba898da132d4b4f6eeb5211e94cd141458383eee Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 18 Mar 2019 07:05:01 +0000 Subject: [PATCH] [X86] Hopefully fix a tautological compare warning in printVecCompareInstr. llvm-svn: 356359 --- llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp | 2 +- llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp index 41fdc3973eb3..e0558a9d315f 100644 --- a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp +++ b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp @@ -81,7 +81,7 @@ bool X86ATTInstPrinter::printVecCompareInstr(const MCInst *MI, !MI->getOperand(MI->getNumOperands() - 1).isImm()) return false; - unsigned Imm = MI->getOperand(MI->getNumOperands() - 1).getImm(); + int64_t Imm = MI->getOperand(MI->getNumOperands() - 1).getImm(); const MCInstrDesc &Desc = MII.get(MI->getOpcode()); diff --git a/llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp b/llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp index 9b2f6681ec91..380c4d9bfbb0 100644 --- a/llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp +++ b/llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp @@ -62,7 +62,7 @@ bool X86IntelInstPrinter::printVecCompareInstr(const MCInst *MI, raw_ostream &OS !MI->getOperand(MI->getNumOperands() - 1).isImm()) return false; - unsigned Imm = MI->getOperand(MI->getNumOperands() - 1).getImm(); + int64_t Imm = MI->getOperand(MI->getNumOperands() - 1).getImm(); const MCInstrDesc &Desc = MII.get(MI->getOpcode());