diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-11-29 18:05:22 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-11-29 18:05:22 +0000 |
commit | 6066164454f58589bee8c4ac857b393b33c65929 (patch) | |
tree | 421d5d4da248f8d574f5f6e668b67e6918e032e3 /llvm/lib/CodeGen | |
parent | 88aa627c0b04d5dccb8c7958d10342ff031aa030 (diff) | |
download | bcm5719-llvm-6066164454f58589bee8c4ac857b393b33c65929.tar.gz bcm5719-llvm-6066164454f58589bee8c4ac857b393b33c65929.zip |
Use a lambda instead of std::bind and std::mem_fn I introduced in r254242. NFC
llvm-svn: 254260
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 53d006c9d9f..2941a7eb3ae 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/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. |