update comments
authorChris Lattner <sabre@nondot.org>
Mon, 11 Mar 2002 22:21:04 +0000 (22:21 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 11 Mar 2002 22:21:04 +0000 (22:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1862 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/TransformInternals.cpp

index 67c25e2fc1f07ff7dc6a0435e68885a917eaa5bb..a68cf87b2be78771c0975a87882a45e258587b9d 100644 (file)
@@ -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;
 }