fix an infinite loop compiling ldecod, notice by JeffC.
authorChris Lattner <sabre@nondot.org>
Wed, 11 Apr 2007 16:51:53 +0000 (16:51 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 11 Apr 2007 16:51:53 +0000 (16:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35910 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index e373ef4365196fddfff4cc77192285abd2ba8c96..9ed09f24c16ab8a8804a33e4de4389d391edb48c 100644 (file)
@@ -2320,7 +2320,7 @@ SDOperand DAGCombiner::visitANY_EXTEND(SDNode *N) {
     SDOperand SCC = 
       SimplifySelectCC(N0.getOperand(0), N0.getOperand(1),
                        DAG.getConstant(1, VT), DAG.getConstant(0, VT),
-                       cast<CondCodeSDNode>(N0.getOperand(2))->get());
+                       cast<CondCodeSDNode>(N0.getOperand(2))->get(), true);
     if (SCC.Val)
       return SCC;
   }