Silence warnings in non assert builds. Patch by David Blaikie
[oota-llvm.git] / lib / Target / Mips / MipsISelLowering.cpp
index fd90731f50d2921fbfb40f22b5b5e04ae3beacd9..c42054e20b1c2d8bfc7d04021f41fa0b1bfd5e54 100644 (file)
@@ -1550,8 +1550,8 @@ SDValue MipsTargetLowering::LowerFCOPYSIGN(SDValue Op, SelectionDAG &DAG)
 
 SDValue MipsTargetLowering::
 LowerFRAMEADDR(SDValue Op, SelectionDAG &DAG) const {
-  unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
-  assert((Depth == 0) &&
+  // check the depth
+  assert((cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue() == 0) &&
          "Frame address can only be determined for current frame.");
 
   MachineFrameInfo *MFI = DAG.getMachineFunction().getFrameInfo();