diff options
author | Sam McCall <sam.mccall@gmail.com> | 2017-12-02 02:28:29 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2017-12-02 02:28:29 +0000 |
commit | a8c5d3af60e61614c1b5a4c8e203c85ada9203e9 (patch) | |
tree | 1fa5bb14b75305f37f3e68d39a100a7f0de27508 | |
parent | 675147b54d98da5a52344de6b04fef96aa9a7e90 (diff) | |
download | bcm5719-llvm-a8c5d3af60e61614c1b5a4c8e203c85ada9203e9.tar.gz bcm5719-llvm-a8c5d3af60e61614c1b5a4c8e203c85ada9203e9.zip |
[clangd] Try to appease gcc constexpr bug (58541)
llvm-svn: 319604
-rw-r--r-- | clang-tools-extra/clangd/FuzzyMatch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/FuzzyMatch.cpp b/clang-tools-extra/clangd/FuzzyMatch.cpp index 5ad0d7a7608..b010d420b26 100644 --- a/clang-tools-extra/clangd/FuzzyMatch.cpp +++ b/clang-tools-extra/clangd/FuzzyMatch.cpp @@ -62,8 +62,8 @@ namespace clang { namespace clangd { using namespace llvm; -const int FuzzyMatcher::MaxPat; -const int FuzzyMatcher::MaxWord; +constexpr int FuzzyMatcher::MaxPat; +constexpr int FuzzyMatcher::MaxWord; static char lower(char C) { return C >= 'A' && C <= 'Z' ? C + ('a' - 'A') : C; } // A "negative infinity" score that won't overflow. |