Fix an infinite loop on x86

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23129 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-08-29 17:30:00 +00:00
parent d00b28809d
commit 507f752f6e

View File

@ -1838,7 +1838,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
if (Tmp.Val) { if (Tmp.Val) {
AddLegalizedOperand(Op, Tmp); AddLegalizedOperand(Op, Tmp);
NeedsAnotherIteration = true; NeedsAnotherIteration = true;
return Result; return Tmp;
} else { } else {
// The target thinks this is legal afterall. // The target thinks this is legal afterall.
break; break;