diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2005-04-25 00:31:53 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2005-04-25 00:31:53 +0000 |
commit | 05bb8831d3cd5299ba8e0c3fecfd7cf682f0ace1 (patch) | |
tree | 948402586284b5e5af24f1ac9cdd458a8db4746b | |
parent | 2b2a5283742662ddef1574b8278d5e8c8127badd (diff) |
Fix a thinko in the documentation of the splitBasicBlock method. The branch
instruction is added to the original block, not the new block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21513 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/BasicBlock.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h index 008fb6b540..5803d94595 100644 --- a/include/llvm/BasicBlock.h +++ b/include/llvm/BasicBlock.h @@ -160,9 +160,9 @@ public: /// 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 |