[llvm] r202748 - [C++11] Remove a leftover std::function instance.
Benjamin Kramer
benny.kra at googlemail.com
Mon Mar 3 11:49:02 PST 2014
Author: d0k
Date: Mon Mar 3 13:49:02 2014
New Revision: 202748
URL: http://llvm.org/viewvc/llvm-project?rev=202748&view=rev
Log:
[C++11] Remove a leftover std::function instance.
It's not needed anymore.
Modified:
llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp?rev=202748&r1=202747&r2=202748&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp Mon Mar 3 13:49:02 2014
@@ -871,10 +871,9 @@ void DSE::RemoveAccessedObjects(const Al
}
// 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);
+ });
}
More information about the llvm-commits
mailing list