diff options
| author | Kazu Hirata <kazu@google.com> | 2025-11-22 15:30:35 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-22 15:30:35 -0800 |
| commit | 637299e7e079b7d80f508691103092753d282ffa (patch) | |
| tree | 15bd79f62ef28d52c78d44e7d9073f4c5d304e88 /clang/utils/TableGen/NeonEmitter.cpp | |
| parent | 9de880e03076e7d9611a205974463465d47d3e21 (diff) | |
[clang] Use llvm::equal (NFC) (#169172)
Identified with llvm-use-ranges.
Diffstat (limited to 'clang/utils/TableGen/NeonEmitter.cpp')
| -rw-r--r-- | clang/utils/TableGen/NeonEmitter.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/clang/utils/TableGen/NeonEmitter.cpp b/clang/utils/TableGen/NeonEmitter.cpp index 89891fd9310e..51a90cb16751 100644 --- a/clang/utils/TableGen/NeonEmitter.cpp +++ b/clang/utils/TableGen/NeonEmitter.cpp @@ -2233,13 +2233,10 @@ NeonEmitter::areRangeChecksCompatible(const ArrayRef<ImmCheck> ChecksA, // the same. The element types may differ as they will be resolved // per-intrinsic as overloaded types by SemaArm.cpp, though the vector sizes // are not and so must be the same. - bool compat = - std::equal(ChecksA.begin(), ChecksA.end(), ChecksB.begin(), ChecksB.end(), - [](const auto &A, const auto &B) { - return A.getImmArgIdx() == B.getImmArgIdx() && - A.getKind() == B.getKind() && - A.getVecSizeInBits() == B.getVecSizeInBits(); - }); + bool compat = llvm::equal(ChecksA, ChecksB, [](const auto &A, const auto &B) { + return A.getImmArgIdx() == B.getImmArgIdx() && A.getKind() == B.getKind() && + A.getVecSizeInBits() == B.getVecSizeInBits(); + }); return compat; } |
