summaryrefslogtreecommitdiffstats
path: root/llvm
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
commitdcde1b2b6af08d8e760ad96de16d2535339d330f (patch)
tree93c36d050f3bcacd6df4f50c2cdc0e4f730a4ceb /llvm
parent1a1ecf06799916a578b198da7dea0019a31c1598 (diff)
downloadbcm5719-llvm-dcde1b2b6af08d8e760ad96de16d2535339d330f.tar.gz
bcm5719-llvm-dcde1b2b6af08d8e760ad96de16d2535339d330f.zip
Fix an infinite loop on x86
llvm-svn: 23129
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 624933cd514..6ff7bccd61a 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud