diff options
author | Matthias Braun <matze@braunis.de> | 2015-05-18 20:27:55 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2015-05-18 20:27:55 +0000 |
commit | fa3872e7ad06f2959f61eba4f0a5c91be7133091 (patch) | |
tree | 729858e0cce4cb38a08b847db344a6dde2764224 /llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp | |
parent | db364695543cfad3f40ef25457cea558c4aebd20 (diff) | |
download | bcm5719-llvm-fa3872e7ad06f2959f61eba4f0a5c91be7133091.tar.gz bcm5719-llvm-fa3872e7ad06f2959f61eba4f0a5c91be7133091.zip |
MachineInstr: Change return value of getOpcode() to unsigned.
This was previously returning int. However there are no negative opcode
numbers and more importantly this was needlessly different from
MCInstrDesc::getOpcode() (which even is the value returned here) and
SDValue::getOpcode()/SDNode::getOpcode().
llvm-svn: 237611
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp index 8dbd9df32b7..90598852b5e 100644 --- a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp +++ b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp @@ -423,7 +423,7 @@ static MachineInstr *getDef(unsigned Reg, } // Return true if MI is a shift of type Opcode by Imm bits. -static bool isShift(MachineInstr *MI, int Opcode, int64_t Imm) { +static bool isShift(MachineInstr *MI, unsigned Opcode, int64_t Imm) { return (MI->getOpcode() == Opcode && !MI->getOperand(2).getReg() && MI->getOperand(3).getImm() == Imm); |