diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-06-16 00:40:02 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-06-16 00:40:02 +0000 |
commit | e0b5cfcae88190bd45778e11d20bc676823098a7 (patch) | |
tree | c28754af25e3ee03795f39ee9a6fffefc99a76ce /lib | |
parent | 589badd86377d9db003ede0de496bc8972dc69bb (diff) | |
download | llvm-e0b5cfcae88190bd45778e11d20bc676823098a7.tar.gz llvm-e0b5cfcae88190bd45778e11d20bc676823098a7.tar.bz2 llvm-e0b5cfcae88190bd45778e11d20bc676823098a7.tar.xz |
Silence warnings in non assert builds. Patch by David Blaikie
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133118 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/Mips/MipsISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp index fd90731f50..c42054e20b 100644 --- a/lib/Target/Mips/MipsISelLowering.cpp +++ b/lib/Target/Mips/MipsISelLowering.cpp @@ -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(); |