diff options
| author | Kazu Hirata <kazu@google.com> | 2025-11-22 15:30:43 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-22 15:30:43 -0800 |
| commit | b296386d2ca8595c23bc2f90eef902f3c485b1a0 (patch) | |
| tree | e0f4ba2480ad012241ddc8644aa74b3cfa1b053f /llvm/lib/CodeGen | |
| parent | 637299e7e079b7d80f508691103092753d282ffa (diff) | |
[llvm] Use llvm::equal (NFC) (#169173)
While I am at it, this patch uses const l-value references for
std::shared_ptr. We don't need to increment the reference count by
passing std::shared_ptr by value.
Identified with llvm-use-ranges.
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/CallingConvLower.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CallingConvLower.cpp b/llvm/lib/CodeGen/CallingConvLower.cpp index df3433199681..644e9bff8929 100644 --- a/llvm/lib/CodeGen/CallingConvLower.cpp +++ b/llvm/lib/CodeGen/CallingConvLower.cpp @@ -290,6 +290,5 @@ bool CCState::resultsCompatible(CallingConv::ID CalleeCC, llvm_unreachable("Unknown location kind"); }; - return std::equal(RVLocs1.begin(), RVLocs1.end(), RVLocs2.begin(), - RVLocs2.end(), AreCompatible); + return llvm::equal(RVLocs1, RVLocs2, AreCompatible); } |
