From 6104626b467d22518f16c74cd67cba89168f65d4 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Wed, 14 Jan 2009 17:09:04 +0000 Subject: [PATCH] minor simplification git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62232 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/IPA/CallGraph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp index 5aac2968b22..1dfca607d8a 100644 --- a/lib/Analysis/IPA/CallGraph.cpp +++ b/lib/Analysis/IPA/CallGraph.cpp @@ -247,8 +247,8 @@ void CallGraphNode::print(std::ostream &OS) const { OS << "Call graph node <>:\n"; for (const_iterator I = begin(), E = end(); I != E; ++I) - if (I->second->getFunction()) - OS << " Calls function '" << I->second->getFunction()->getName() <<"'\n"; + if (Function *FI = I->second->getFunction()) + OS << " Calls function '" << FI->getName() <<"'\n"; else OS << " Calls external node\n"; OS << "\n";