mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 03:58:16 +00:00
[C++11] Remove a leftover std::function instance.
It's not needed anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202748 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0550e93e89
commit
dcf23ddbcb
@ -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
Block a user