projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86ccb92
)
Use a lambda instead of std::bind and std::mem_fn I introduced in r254242. NFC
author
Craig Topper
<craig.topper@gmail.com>
Sun, 29 Nov 2015 18:05:22 +0000
(18:05 +0000)
committer
Craig 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 53d006c9d9fec6cb53bd2c82c47df56269d8ccb6..2941a7eb3aed8dcac10b2e8d4fed72eeaffc7f7d 100644
(file)
--- 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.