diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-08-11 22:21:41 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-08-11 22:21:41 +0000 |
commit | 0d955d0bf5cbbd50061309ad2c08c0dcf8f62039 (patch) | |
tree | 19991ceb4f16b4e3ce06fe2c39304d27a93b8b7b /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 332b3b22109e9c0d84456888150c0a30f378f984 (diff) | |
download | bcm5719-llvm-0d955d0bf5cbbd50061309ad2c08c0dcf8f62039.tar.gz bcm5719-llvm-0d955d0bf5cbbd50061309ad2c08c0dcf8f62039.zip |
Use the range variant of find instead of unpacking begin/end
If the result of the find is only used to compare against end(), just
use is_contained instead.
No functionality change is intended.
llvm-svn: 278433
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 23b1dc30a0d..642759afd01 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -3388,7 +3388,7 @@ void SelectionDAGISel::SelectCodeCommon(SDNode *NodeToMatch, SelectionDAG::DAGNodeDeletedListener NDL(*CurDAG, [&](SDNode *N, SDNode *E) { auto &Chain = ChainNodesMatched; - assert((!E || llvm::find(Chain, N) == Chain.end()) && + assert((!E || !is_contained(Chain, N)) && "Chain node replaced during MorphNode"); Chain.erase(std::remove(Chain.begin(), Chain.end(), N), Chain.end()); }); |