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/RegionPass.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/RegionPass.cpp')
-rw-r--r-- | llvm/lib/Analysis/RegionPass.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/RegionPass.cpp b/llvm/lib/Analysis/RegionPass.cpp index d11b3323cac..71de14450b7 100644 --- a/llvm/lib/Analysis/RegionPass.cpp +++ b/llvm/lib/Analysis/RegionPass.cpp @@ -196,8 +196,10 @@ public: bool runOnRegion(Region *R, RGPassManager &RGM) override { Out << Banner; for (const auto &BB : R->blocks()) { - assert(BB != nullptr && "Expecting non-null Block"); - BB->print(Out); + if (BB) + BB->print(Out); + else + Out << "Printing <null> Block"; } return false; |