projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf4f97c
)
[DAG] Remove pointless std::function wrapper, NFC
author
Reid Kleckner
<rnk@google.com>
Wed, 9 Feb 2022 22:30:32 +0000
(14:30 -0800)
committer
Reid Kleckner
<rnk@google.com>
Wed, 9 Feb 2022 22:30:43 +0000
(14:30 -0800)
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index
8fd0001
..
b316967
100644
(file)
--- a/
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@
-23962,7
+23962,7
@@
void DAGCombiner::GatherAllAliases(SDNode *N, SDValue OriginalChain,
unsigned Depth = 0;
// Attempt to improve chain by a single step
-
std::function<bool(SDValue &)>
ImproveChain = [&](SDValue &C) -> bool {
+
auto
ImproveChain = [&](SDValue &C) -> bool {
switch (C.getOpcode()) {
case ISD::EntryToken:
// No need to mark EntryToken.