[llvm-commits] CVS: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 11 18:02:42 PDT 2004
Changes in directory llvm/lib/Transforms/Scalar:
IndVarSimplify.cpp updated: 1.72 -> 1.73
---
Log message:
Fix a REALLY obscure bug in my previous checkin, which was splicing the END
marker from one ilist into the middle of another basic block!
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
diff -u llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.72 llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.73
--- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.72 Mon Oct 11 18:06:50 2004
+++ llvm/lib/Transforms/Scalar/IndVarSimplify.cpp Mon Oct 11 20:02:29 2004
@@ -138,7 +138,7 @@
// Splice the cast immediately after the operand in question.
BasicBlock::InstListType &InstList =
I->getParent()->getInstList();
- InstList.splice(It, InstList, CI);
+ InstList.splice(It, CI->getParent()->getInstList(), CI);
}
return CI;
}
More information about the llvm-commits
mailing list