forked from OSchip/llvm-project
parent
61854b193c
commit
f0084e1333
|
@ -82,8 +82,8 @@ void BasicInlinerImpl::inlineFunctions() {
|
|||
Function *F = *FI;
|
||||
for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB)
|
||||
for (BasicBlock::iterator I = BB->begin(); I != BB->end(); ++I) {
|
||||
CallSite CS = CallSite::get(I);
|
||||
if (CS.getInstruction() && CS.getCalledFunction()
|
||||
CallSite CS(cast<Value>(I));
|
||||
if (CS && CS.getCalledFunction()
|
||||
&& !CS.getCalledFunction()->isDeclaration())
|
||||
CallSites.push_back(CS);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue