fix an infinite loop compiling ldecod, notice by JeffC.
[oota-llvm.git] / 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;
   }