From: Chris Lattner Date: Mon, 29 Aug 2005 17:30:00 +0000 (+0000) Subject: Fix an infinite loop on x86 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=507f752f6ed28aa9f0ae680e95bfc93df4e9e2dc;p=oota-llvm.git Fix an infinite loop on x86 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23129 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 624933cd514..6ff7bccd61a 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1838,7 +1838,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { if (Tmp.Val) { AddLegalizedOperand(Op, Tmp); NeedsAnotherIteration = true; - return Result; + return Tmp; } else { // The target thinks this is legal afterall. break;