llvm.org GIT mirror llvm / dcf23dd
[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 Benjamin Kramer 6 years ago
1 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
870870 }
871871
872872 // Remove objects that could alias LoadedLoc.
873 std::function Pred = [&](Value *I) {
873 DeadStackObjects.remove_if([&](Value *I) {
874874 // See if the loaded location could alias the stack location.
875875 AliasAnalysis::Location StackLoc(I, getPointerSize(I, *AA));
876876 return !AA->isNoAlias(StackLoc, LoadedLoc);
877 };
878 DeadStackObjects.remove_if(Pred);
879 }
877 });
878 }