mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
simplify
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109589 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a309dac868
commit
f5e13095fa
@ -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
Block a user