aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/TransformInternals.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-11 22:21:04 +0000
committerChris Lattner <sabre@nondot.org>2002-03-11 22:21:04 +0000
commitc4db754ecf98e96318931d3ab3982afcbdb949f4 (patch)
treeff6ee3ba5848721873bd7a3b81c073bdc0d7d406 /lib/Transforms/TransformInternals.cpp
parentb24196f5aed14160d2a921de8fcdd2c3b5a97fbb (diff)
update comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1862 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/TransformInternals.cpp')
-rw-r--r--lib/Transforms/TransformInternals.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/TransformInternals.cpp b/lib/Transforms/TransformInternals.cpp
index 67c25e2fc1..a68cf87b2b 100644
--- a/lib/Transforms/TransformInternals.cpp
+++ b/lib/Transforms/TransformInternals.cpp
@@ -50,13 +50,12 @@ void ReplaceInstWithInst(BasicBlock::InstListType &BIL,
"ReplaceInstWithInst: Instruction already inserted into basic block!");
// Insert the new instruction into the basic block...
- BI = BIL.insert(BI, I)+1;
+ BI = BIL.insert(BI, I)+1; // Increment BI to point to instruction to delete
// Replace all uses of the old instruction, and delete it.
ReplaceInstWithValue(BIL, BI, I);
- // Reexamine the instruction just inserted next time around the cleanup pass
- // loop.
+ // Move BI back to point to the newly inserted instruction
--BI;
}