From 2496d696f02603717906442bb71f8d661bd9a299 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 20 Mar 2005 02:41:16 +0000 Subject: [PATCH] use simpler methods. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20706 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/CompleteBottomUp.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/Analysis/DataStructure/CompleteBottomUp.cpp b/lib/Analysis/DataStructure/CompleteBottomUp.cpp index 16ea4385dbe..0b97995a772 100644 --- a/lib/Analysis/DataStructure/CompleteBottomUp.cpp +++ b/lib/Analysis/DataStructure/CompleteBottomUp.cpp @@ -56,11 +56,10 @@ bool CompleteBUDataStructures::runOnModule(Module &M) { Instruction *TheCall = CSI->getCallSite().getInstruction(); if (CSI->isIndirectCall()) { // indirect call: insert all callees - const std::vector &Callees = - CSI->getCalleeNode()->getGlobals(); + std::vector Callees; + CSI->getCalleeNode()->addFullFunctionList(Callees); for (unsigned i = 0, e = Callees.size(); i != e; ++i) - if (Function *F = dyn_cast(Callees[i])) - ActualCallees.insert(std::make_pair(TheCall, F)); + ActualCallees.insert(std::make_pair(TheCall, Callees[i])); } else { // direct call: insert the single callee directly ActualCallees.insert(std::make_pair(TheCall, CSI->getCalleeFunc()));