Silence warnings in non assert builds. Patch by David Blaikie

llvm-svn: 133118
This commit is contained in:
Bruno Cardoso Lopes 2011-06-16 00:40:02 +00:00
parent 0a6ba2684f
commit 5444a7b4cd
1 changed files with 2 additions and 2 deletions

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