llvm-svn: 109589
This commit is contained in:
Gabor Greif 2010-07-28 15:52:43 +00:00
parent 61854b193c
commit f0084e1333
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}