[llvm] 43279d1 - [FileCheck] Try to fix buildbot failures caused by c7c542e8f306

Joel E. Denny via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 27 08:06:06 PDT 2021


Author: Joel E. Denny
Date: 2021-03-27T11:03:10-04:00
New Revision: 43279d1df90cdd833b473ec7d9b623c45d2ccfcc

URL: https://github.com/llvm/llvm-project/commit/43279d1df90cdd833b473ec7d9b623c45d2ccfcc
DIFF: https://github.com/llvm/llvm-project/commit/43279d1df90cdd833b473ec7d9b623c45d2ccfcc.diff

LOG: [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&>,
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

Added: 
    

Modified: 
    llvm/utils/FileCheck/FileCheck.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp
index 0e97c711c0a8..4dcc4812502e 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();
     }
   };


        


More information about the llvm-commits mailing list