[C++11] Remove a leftover std::function instance.

It's not needed anymore.

llvm-svn: 202748
This commit is contained in:
Benjamin Kramer 2014-03-03 19:49:02 +00:00
parent ba16bce97d
commit 9c794c7a7c
1 changed files with 2 additions and 3 deletions

View File

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