[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Aug 29 10:30:12 PDT 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

LegalizeDAG.cpp updated: 1.175 -> 1.176
---
Log message:

Fix an infinite loop on x86


---
Diffs of the changes:  (+1 -1)

 LegalizeDAG.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.175 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.176
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.175	Fri Aug 26 17:50:40 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp	Mon Aug 29 12:30:00 2005
@@ -1838,7 +1838,7 @@
         if (Tmp.Val) {
           AddLegalizedOperand(Op, Tmp);
           NeedsAnotherIteration = true;
-          return Result;
+          return Tmp;
         } else {
           // The target thinks this is legal afterall.
           break;






More information about the llvm-commits mailing list