[llvm] r254260 - Use a lambda instead of std::bind and std::mem_fn I introduced in r254242. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 29 10:05:23 PST 2015


Author: ctopper
Date: Sun Nov 29 12:05:22 2015
New Revision: 254260

URL: http://llvm.org/viewvc/llvm-project?rev=254260&view=rev
Log:
Use a lambda instead of std::bind and std::mem_fn I introduced in r254242. NFC

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=254260&r1=254259&r2=254260&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Sun Nov 29 12:05:22 2015
@@ -11320,8 +11320,9 @@ bool DAGCombiner::MergeConsecutiveStores
     // Check if this store interferes with any of the loads that we found.
     // If we find a load that alias with this store. Stop the sequence.
     if (std::any_of(AliasLoadNodes.begin(), AliasLoadNodes.end(),
-                    std::bind(std::mem_fn(&DAGCombiner::isAlias), this,
-                              std::placeholders::_1, StoreNodes[i].MemNode)))
+                    [&](LSBaseSDNode* Ldn) {
+                      return isAlias(Ldn, StoreNodes[i].MemNode);
+                    }))
       break;
 
     // Mark this node as useful.




More information about the llvm-commits mailing list