Misleading comments of SplitBlockAndInsertIfThenElse in BasicBlockUtils.h
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 19 Sep 2016 21:26:05 +0000 (21:26 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 19 Sep 2016 21:26:05 +0000 (21:26 +0000)
commit047e81d9f157b58e841ea65655924ef2da3f16b2
treecc1c4e33a4180ee806115c0467eb2e7f734bfef0
parent3beafffcca2eb6306ebf7b68b8069dda95f49492
Misleading comments of SplitBlockAndInsertIfThenElse in BasicBlockUtils.h

The comments of SplitBlockAndInsertIfThenElse say the SplitBefore instruction will stay in the old block.
But according to the implementation(split the block at SplitBefore by using splitBasicBlock), the SplitBefore will be moved to the new block.

This patch fixes the comments.

Patch by Zhe Yu Wu.

llvm-svn: 281939
llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h