forked from OSchip/llvm-project
[C++11] Remove a leftover std::function instance.
It's not needed anymore. llvm-svn: 202748
This commit is contained in:
parent
ba16bce97d
commit
9c794c7a7c
|
@ -871,10 +871,9 @@ void DSE::RemoveAccessedObjects(const AliasAnalysis::Location &LoadedLoc,
|
|||
}
|
||||
|
||||
// Remove objects that could alias LoadedLoc.
|
||||
std::function<bool(Value *)> Pred = [&](Value *I) {
|
||||
DeadStackObjects.remove_if([&](Value *I) {
|
||||
// See if the loaded location could alias the stack location.
|
||||
AliasAnalysis::Location StackLoc(I, getPointerSize(I, *AA));
|
||||
return !AA->isNoAlias(StackLoc, LoadedLoc);
|
||||
};
|
||||
DeadStackObjects.remove_if(Pred);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue