[llvm-commits] CVS: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Feb 14 12:12:00 PST 2005



Changes in directory llvm/lib/Transforms/Scalar:

IndVarSimplify.cpp updated: 1.75 -> 1.76
---
Log message:

Fix the second bug attached to PR504: http://llvm.cs.uiuc.edu/PR504 .


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

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


Index: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
diff -u llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.75 llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.76
--- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.75	Fri Feb 11 21:26:49 2005
+++ llvm/lib/Transforms/Scalar/IndVarSimplify.cpp	Mon Feb 14 14:11:45 2005
@@ -139,7 +139,7 @@
                 if (It != BasicBlock::iterator(CI)) {
                   // Splice the cast immediately after the operand in question.
                   BasicBlock::InstListType &InstList =
-                    I->getParent()->getInstList();
+                    It->getParent()->getInstList();
                   InstList.splice(It, CI->getParent()->getInstList(), CI);
                 }
                 return CI;






More information about the llvm-commits mailing list