Use a lambda instead of std::bind and std::mem_fn I introduced in r254242. NFC
authorCraig Topper <craig.topper@gmail.com>
Sun, 29 Nov 2015 18:05:22 +0000 (18:05 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 29 Nov 2015 18:05:22 +0000 (18:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254260 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index 53d006c..2941a7e 100644 (file)
@@ -11320,8 +11320,9 @@ bool DAGCombiner::MergeConsecutiveStores(StoreSDNode* St) {
     // 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.