diff options
author | Richard Trieu <rtrieu@google.com> | 2014-06-21 02:43:02 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2014-06-21 02:43:02 +0000 |
commit | c1485223a688abe8a86e27529e86bd0fa885ceeb (patch) | |
tree | 01e75c881a2bfd892b2d1c06ab1bd8ff014db96c /llvm/lib/Analysis/LoopPass.cpp | |
parent | 9eaae3d8f67a7f85c58888b2074854f63266bfac (diff) | |
download | bcm5719-llvm-c1485223a688abe8a86e27529e86bd0fa885ceeb.tar.gz bcm5719-llvm-c1485223a688abe8a86e27529e86bd0fa885ceeb.zip |
Add back functionality removed in r210497.
Instead of asserting, output a message stating that a null pointer was found.
llvm-svn: 211430
Diffstat (limited to 'llvm/lib/Analysis/LoopPass.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopPass.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp index 2c6e6e3ffff..7bd866e73e1 100644 --- a/llvm/lib/Analysis/LoopPass.cpp +++ b/llvm/lib/Analysis/LoopPass.cpp @@ -45,8 +45,10 @@ public: for (Loop::block_iterator b = L->block_begin(), be = L->block_end(); b != be; ++b) { - assert((*b) != nullptr && "Expecting non-null block"); - (*b)->print(Out); + if (*b) + (*b)->print(Out); + else + Out << "Printing <null> block"; } return false; } |