mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-16 23:19:37 +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…
x
Reference in New Issue
Block a user