[llvm-commits] [llvm] r132883 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Rafael Espindola rafael.espindola at gmail.com
Sat Jun 11 22:26:32 PDT 2011


Author: rafael
Date: Sun Jun 12 00:26:32 2011
New Revision: 132883

URL: http://llvm.org/viewvc/llvm-project?rev=132883&view=rev
Log:
Fix silly bug I introduce in the previous commit. Fixes debug builds.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=132883&r1=132882&r2=132883&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Sun Jun 12 00:26:32 2011
@@ -1941,9 +1941,9 @@
   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;
 }
 
 





More information about the llvm-commits mailing list