diff options
author | Rahul Joshi <rjoshi@nvidia.com> | 2025-09-26 08:58:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-26 08:58:35 -0700 |
commit | 2a72522c52bb1f58609b6f53e8304542cfd3eb34 (patch) | |
tree | ae4180b4d55f6f62c9e1d8b80e0a82d0c84721d9 /llvm/utils/FileCheck/FileCheck.cpp | |
parent | 8eb0ab708e03739ae840542ce95e8fa9ba3c623a (diff) | |
download | llvm-2a72522c52bb1f58609b6f53e8304542cfd3eb34.zip llvm-2a72522c52bb1f58609b6f53e8304542cfd3eb34.tar.gz llvm-2a72522c52bb1f58609b6f53e8304542cfd3eb34.tar.bz2 |
[NFC][LLVM] Pass/return SMLoc by value instead of const reference (#160797)
SMLoc itself encapsulates just a pointer, so there is no need to pass or
return it by reference.
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
-rw-r--r-- | llvm/utils/FileCheck/FileCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp index 185b6b3..305c28b 100644 --- a/llvm/utils/FileCheck/FileCheck.cpp +++ b/llvm/utils/FileCheck/FileCheck.cpp @@ -384,7 +384,7 @@ BuildInputAnnotations(const SourceMgr &SM, unsigned CheckFileBufferID, std::vector<InputAnnotation> &Annotations, unsigned &LabelWidth) { struct CompareSMLoc { - bool operator()(const SMLoc &LHS, const SMLoc &RHS) const { + bool operator()(SMLoc LHS, SMLoc RHS) const { return LHS.getPointer() < RHS.getPointer(); } }; |