fix an infinite loop compiling ldecod, notice by JeffC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-04-11 16:51:53 +00:00
parent e11529438c
commit c24bbaddf8

View File

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