aboutsummaryrefslogtreecommitdiff
path: root/llvm/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
commit277381f69a7c7305d627358855975f6c0e309aa5 (patch)
treeb5b4dbccb25b442bb13281ab49ba16535fa89130 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentd17e296301c2fb3c82a88fcf693b67fb5a59807d (diff)
downloadllvm-277381f69a7c7305d627358855975f6c0e309aa5.zip
llvm-277381f69a7c7305d627358855975f6c0e309aa5.tar.gz
llvm-277381f69a7c7305d627358855975f6c0e309aa5.tar.bz2
Whitespace changes, comment clarification. No functional changes.
llvm-svn: 91274
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index 80b4b0f..3b4b080 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/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;