aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
authorJoel E. Denny <jdenny.ornl@gmail.com>2021-03-27 11:03:10 -0400
committerJoel E. Denny <jdenny.ornl@gmail.com>2021-03-27 11:03:10 -0400
commit43279d1df90cdd833b473ec7d9b623c45d2ccfcc (patch)
treef2e7aadcab29e343ab515a88f60f850974b6fbd9 /llvm/utils/FileCheck/FileCheck.cpp
parentc7c542e8f306a07e902a59d524c6f92a57abf10a (diff)
downloadllvm-43279d1df90cdd833b473ec7d9b623c45d2ccfcc.zip
llvm-43279d1df90cdd833b473ec7d9b623c45d2ccfcc.tar.gz
llvm-43279d1df90cdd833b473ec7d9b623c45d2ccfcc.tar.bz2
[FileCheck] Try to fix buildbot failures caused by c7c542e8f306
For example, <https://lab.llvm.org/buildbot/#/builders/132/builds/3929> has this diagnostic: ``` /opt/gcc/9.3.0/snos/include/g++/bits/stl_tree.h:780:8: error: static assertion failed: comparison object must be invocable as const 780 | is_invocable_v<const _Compare&, const _Key&, const _Key&>, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
-rw-r--r--llvm/utils/FileCheck/FileCheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp
index 0e97c711..4dcc481 100644
--- a/llvm/utils/FileCheck/FileCheck.cpp
+++ b/llvm/utils/FileCheck/FileCheck.cpp
@@ -380,7 +380,7 @@ BuildInputAnnotations(const SourceMgr &SM, unsigned CheckFileBufferID,
std::vector<InputAnnotation> &Annotations,
unsigned &LabelWidth) {
struct CompareSMLoc {
- bool operator()(const SMLoc &LHS, const SMLoc &RHS) {
+ bool operator()(const SMLoc &LHS, const SMLoc &RHS) const {
return LHS.getPointer() < RHS.getPointer();
}
};