Silence warnings in non assert builds. Patch by David Blaikie
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 16 Jun 2011 00:40:02 +0000 (00:40 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 16 Jun 2011 00:40:02 +0000 (00:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133118 91177308-0d34-0410-b5e6-96231b3b80d8

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();