Use a lambda instead of std::bind and std::mem_fn I introduced in r254242. NFC
[oota-llvm.git] / lib / CodeGen / SelectionDAG / DAGCombiner.cpp
index 53d006c9d9fec6cb53bd2c82c47df56269d8ccb6..2941a7eb3aed8dcac10b2e8d4fed72eeaffc7f7d 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.