Skip to content

Commit 4f30812

Browse files
authored
[BOLT][NFC] Fix comment (#73983)
Fix off-by-one error in comment.
1 parent a9a5af8 commit 4f30812

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bolt/lib/Core/BinaryFunction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3352,9 +3352,9 @@ void BinaryFunction::fixBranches() {
33523352
// We are going to generate two branches. Check if their targets are in
33533353
// the same fragment as this block. If only one target is in the same
33543354
// fragment, make it the destination of the conditional branch. There
3355-
// is a chance it will be a short branch which takes 5 bytes fewer than
3355+
// is a chance it will be a short branch which takes 4 bytes fewer than
33563356
// a long conditional branch. For unconditional branch, the difference
3357-
// is 4 bytes.
3357+
// is 3 bytes.
33583358
if (BB->getFragmentNum() != TSuccessor->getFragmentNum() &&
33593359
BB->getFragmentNum() == FSuccessor->getFragmentNum())
33603360
swapSuccessors();

0 commit comments

Comments
 (0)