Add back functionality removed in r210497.

Instead of asserting, output a message stating that a null pointer was found.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211430 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Richard Trieu
2014-06-21 02:43:02 +00:00
parent 5d0ff9c928
commit 7921239c41
7 changed files with 34 additions and 16 deletions
+4 -2
View File
@@ -603,8 +603,10 @@ namespace {
bool runOnSCC(CallGraphSCC &SCC) override {
Out << Banner;
for (CallGraphSCC::iterator I = SCC.begin(), E = SCC.end(); I != E; ++I) {
assert((*I)->getFunction() && "Expecting non-null Function");
(*I)->getFunction()->print(Out);
if ((*I)->getFunction())
(*I)->getFunction()->print(Out);
else
Out << "Printing <null> Function";
}
return false;
}