[llvm-commits] CVS: llvm/include/llvm/BasicBlock.h
Reid Spencer
reid at x10sys.com
Sun Apr 24 17:32:04 PDT 2005
Changes in directory llvm/include/llvm:
BasicBlock.h updated: 1.53 -> 1.54
---
Log message:
Fix a thinko in the documentation of the splitBasicBlock method. The branch
instruction is added to the original block, not the new block.
---
Diffs of the changes: (+3 -3)
BasicBlock.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/include/llvm/BasicBlock.h
diff -u llvm/include/llvm/BasicBlock.h:1.53 llvm/include/llvm/BasicBlock.h:1.54
--- llvm/include/llvm/BasicBlock.h:1.53 Thu Apr 21 15:11:51 2005
+++ llvm/include/llvm/BasicBlock.h Sun Apr 24 19:31:53 2005
@@ -160,9 +160,9 @@
/// splitBasicBlock - This splits a basic block into two at the specified
/// instruction. Note that all instructions BEFORE the specified iterator
/// stay as part of the original basic block, an unconditional branch is added
- /// to the new BB, and the rest of the instructions in the BB are moved to the
- /// new BB, including the old terminator. The newly formed BasicBlock is
- /// returned. This function invalidates the specified iterator.
+ /// to the original BB, and the rest of the instructions in the BB are moved
+ /// to the new BB, including the old terminator. The newly formed BasicBlock
+ /// is returned. This function invalidates the specified iterator.
///
/// Note that this only works on well formed basic blocks (must have a
/// terminator), and 'I' must not be the end of instruction list (which would
More information about the llvm-commits
mailing list