diff options
author | Austin <zhenhangwang@huawei.com> | 2025-07-04 14:10:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-04 14:10:28 +0800 |
commit | a550fef9061f3628e75825306759b13365cb50e3 (patch) | |
tree | 76344adbdddc4fecd44868bdfac68469e7d573b4 /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
parent | 872eac7af0050813062baba9662beb81093b6b55 (diff) | |
download | llvm-a550fef9061f3628e75825306759b13365cb50e3.zip llvm-a550fef9061f3628e75825306759b13365cb50e3.tar.gz llvm-a550fef9061f3628e75825306759b13365cb50e3.tar.bz2 |
[llvm] Use llvm::fill instead of std::fill(NFC) (#146911)
Use llvm::fill instead of std::fill
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringBase.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index cda41a9..65bbec8 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -681,9 +681,8 @@ void TargetLoweringBase::initActions() { memset(TruncStoreActions, 0, sizeof(TruncStoreActions)); memset(IndexedModeActions, 0, sizeof(IndexedModeActions)); memset(CondCodeActions, 0, sizeof(CondCodeActions)); - std::fill(std::begin(RegClassForVT), std::end(RegClassForVT), nullptr); - std::fill(std::begin(TargetDAGCombineArray), - std::end(TargetDAGCombineArray), 0); + llvm::fill(RegClassForVT, nullptr); + llvm::fill(TargetDAGCombineArray, 0); // Let extending atomic loads be unsupported by default. for (MVT ValVT : MVT::all_valuetypes()) |