summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-12-14 06:51:19 +0000
committerBill Wendling <isanbard@gmail.com>2009-12-14 06:51:19 +0000
commit85de1e5bade2f3755e47ed6fd43c92fcf99ff08b (patch)
treed3bfd5859bef666677d20091f65c3c9ffc6e2215 /lib/CodeGen/MachineBasicBlock.cpp
parenta937f220e14826266a8f05b58a541aad669c8912 (diff)
downloadllvm-85de1e5bade2f3755e47ed6fd43c92fcf99ff08b.tar.gz
llvm-85de1e5bade2f3755e47ed6fd43c92fcf99ff08b.tar.bz2
llvm-85de1e5bade2f3755e47ed6fd43c92fcf99ff08b.tar.xz
Whitespace changes, comment clarification. No functional changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--lib/CodeGen/MachineBasicBlock.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp
index 80b4b0ffd8..3b4b080c63 100644
--- a/lib/CodeGen/MachineBasicBlock.cpp
+++ b/lib/CodeGen/MachineBasicBlock.cpp
@@ -483,16 +483,16 @@ bool MachineBasicBlock::CorrectExtraCFGEdges(MachineBasicBlock *DestA,
MachineFunction::iterator FallThru =
llvm::next(MachineFunction::iterator(this));
- // If this block ends with a conditional branch that falls through to its
- // successor, set DestB as the successor.
if (isCond) {
+ // If this block ends with a conditional branch that falls through to its
+ // successor, set DestB as the successor.
if (DestB == 0 && FallThru != getParent()->end()) {
DestB = FallThru;
AddedFallThrough = true;
}
} else {
// If this is an unconditional branch with no explicit dest, it must just be
- // a fallthrough into DestB.
+ // a fallthrough into DestA.
if (DestA == 0 && FallThru != getParent()->end()) {
DestA = FallThru;
AddedFallThrough = true;