From 96be2c60e32eb4397809ebad636ffee1e05560fb Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 29 Nov 2015 18:05:22 +0000 Subject: [PATCH] Use a lambda instead of std::bind and std::mem_fn I introduced in r254242. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254260 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 53d006c9d9f..2941a7eb3ae 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -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. -- 2.34.1