Make fabs safe to speculatively execute
[oota-llvm.git] / lib / Analysis / LoopPass.cpp
index 8df18e75c64e243f619e3a92b0a8cb5c01f6f985..7bd866e73e10f370100e06ce148f34876deb60b6 100644 (file)
@@ -45,7 +45,10 @@ public:
     for (Loop::block_iterator b = L->block_begin(), be = L->block_end();
          b != be;
          ++b) {
-      (*b)->print(Out);
+      if (*b)
+        (*b)->print(Out);
+      else
+        Out << "Printing <null> block";
     }
     return false;
   }