diff --git a/lib/Analysis/DataStructure/DataStructureStats.cpp b/lib/Analysis/DataStructure/DataStructureStats.cpp index 3f8b6a93b8d..afb69b8387d 100644 --- a/lib/Analysis/DataStructure/DataStructureStats.cpp +++ b/lib/Analysis/DataStructure/DataStructureStats.cpp @@ -79,8 +79,9 @@ void DSGraphStats::countCallees(const Function& F) { I != E; ++I) if (isIndirectCallee(I->getCallSite().getCalledValue())) { // This is an indirect function call - const std::vector &Callees = - I->getCalleeNode()->getGlobals(); + std::vector Callees; + I->getCalleeNode()->addFullFunctionList(Callees); + if (Callees.size() > 0) { totalNumCallees += Callees.size(); ++numIndirectCalls;