diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-11 22:21:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-11 22:21:04 +0000 |
commit | 7e916340059fa73d5a8d5bb4f187291dc392a941 (patch) | |
tree | af700868ed1477bce09b6bf23ead8ef7d5fdab06 /llvm/lib/Transforms/TransformInternals.cpp | |
parent | 7287d698bffca1da85f9837f2c7025ff44e6c695 (diff) | |
download | bcm5719-llvm-7e916340059fa73d5a8d5bb4f187291dc392a941.tar.gz bcm5719-llvm-7e916340059fa73d5a8d5bb4f187291dc392a941.zip |
update comments
llvm-svn: 1862
Diffstat (limited to 'llvm/lib/Transforms/TransformInternals.cpp')
-rw-r--r-- | llvm/lib/Transforms/TransformInternals.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/TransformInternals.cpp b/llvm/lib/Transforms/TransformInternals.cpp index 67c25e2fc1f..a68cf87b2be 100644 --- a/llvm/lib/Transforms/TransformInternals.cpp +++ b/llvm/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; } |