diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-06-12 05:26:32 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-06-12 05:26:32 +0000 |
commit | 653a07206d9da6c168774fb71fd382436429bc65 (patch) | |
tree | 85af0330583607b6c443fba71123fe78b6ad1bbb /llvm/lib/CodeGen | |
parent | defd4b0875f692e26b67b0851c7e63f922fcdcd0 (diff) | |
download | bcm5719-llvm-653a07206d9da6c168774fb71fd382436429bc65.tar.gz bcm5719-llvm-653a07206d9da6c168774fb71fd382436429bc65.zip |
Fix silly bug I introduce in the previous commit. Fixes debug builds.
llvm-svn: 132883
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 1fd724f9ca7..00f3501fcf7 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1941,9 +1941,9 @@ isBlockOnlyReachableByFallthrough(const MachineBasicBlock *MBB) const { if (TII->AnalyzeBranch(*Pred, PredTBB, PredFBB, PredCond)) return false; - if (PredCond.empty()) - return true; - return !PredFBB || PredFBB == MBB; + // This is a fall through if there is no conditions in the bb + // or if there is no explicit false branch. + return PredCond.empty() || !PredFBB; } |