MachineInstr: Change return value of getOpcode() to unsigned.
[oota-llvm.git] / lib / Target / AArch64 / AArch64FrameLowering.cpp
index 485181575aebb455e6cf8f0ef5834b2900883419..3ba7e70a102dba1a5a01d75056ea55dfab711318 100644 (file)
@@ -161,7 +161,7 @@ void AArch64FrameLowering::eliminateCallFramePseudoInstr(
   const AArch64InstrInfo *TII =
       static_cast<const AArch64InstrInfo *>(MF.getSubtarget().getInstrInfo());
   DebugLoc DL = I->getDebugLoc();
-  int Opc = I->getOpcode();
+  unsigned Opc = I->getOpcode();
   bool IsDestroy = Opc == TII->getCallFrameDestroyOpcode();
   uint64_t CalleePopAmount = IsDestroy ? I->getOperand(1).getImm() : 0;