aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-29 17:30:00 +0000
committerChris Lattner <sabre@nondot.org>2005-08-29 17:30:00 +0000
commit507f752f6ed28aa9f0ae680e95bfc93df4e9e2dc (patch)
tree345d8b43d29f1bb5db407458a5e0d55fb24a1af4
parentd00b28809d64efa699507bce2ffce167559cd0d1 (diff)
Fix an infinite loop on x86
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23129 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 624933cd51..6ff7bccd61 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;