diff options
author | Kazu Hirata <kazu@google.com> | 2025-04-26 18:18:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-26 18:18:09 -0700 |
commit | 8210cdd764cb0b334f2bc205b316e94480c47c88 (patch) | |
tree | 2c8d555403767b4467bd3f6f7d070ac69872e3da /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | fda8b751bd676190251721cb4840e82dd378f3fb (diff) | |
download | llvm-8210cdd764cb0b334f2bc205b316e94480c47c88.zip llvm-8210cdd764cb0b334f2bc205b316e94480c47c88.tar.gz llvm-8210cdd764cb0b334f2bc205b316e94480c47c88.tar.bz2 |
[llvm] Use llvm::replace (NFC) (#137481)
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 62d911f..62dfd7cf 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2713,8 +2713,7 @@ void SelectionDAGISel::UpdateChains( assert(ChainVal.getValueType() == MVT::Other && "Not a chain?"); SelectionDAG::DAGNodeDeletedListener NDL( *CurDAG, [&](SDNode *N, SDNode *E) { - std::replace(ChainNodesMatched.begin(), ChainNodesMatched.end(), N, - static_cast<SDNode *>(nullptr)); + llvm::replace(ChainNodesMatched, N, static_cast<SDNode *>(nullptr)); }); if (ChainNode->getOpcode() != ISD::TokenFactor) ReplaceUses(ChainVal, InputChain); |