[llvm-commits] [llvm] r171728 - /llvm/trunk/lib/Target/R600/SIISelLowering.cpp

NAKAMURA Takumi geek4civic at gmail.com
Mon Jan 7 03:14:44 PST 2013


Author: chapuni
Date: Mon Jan  7 05:14:44 2013
New Revision: 171728

URL: http://llvm.org/viewvc/llvm-project?rev=171728&view=rev
Log:
R600/SIISelLowering.cpp: Suppress a warning. [-Wunused-variable]

Modified:
    llvm/trunk/lib/Target/R600/SIISelLowering.cpp

Modified: llvm/trunk/lib/Target/R600/SIISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIISelLowering.cpp?rev=171728&r1=171727&r2=171728&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/R600/SIISelLowering.cpp Mon Jan  7 05:14:44 2013
@@ -327,9 +327,8 @@
     // As long as we negate the condition everything is fine
     SDNode *SetCC = Intr;
     assert(SetCC->getConstantOperandVal(1) == 1);
-
-    CondCodeSDNode *CC = cast<CondCodeSDNode>(SetCC->getOperand(2).getNode());
-    assert(CC->get() == ISD::SETNE);
+    assert(cast<CondCodeSDNode>(SetCC->getOperand(2).getNode())->get() ==
+           ISD::SETNE);
     Intr = SetCC->getOperand(0).getNode();
 
   } else {





More information about the llvm-commits mailing list