Author: sammccall Date: Fri Dec 1 18:28:29 2017 New Revision: 319604 URL: http://llvm.org/viewvc/llvm-project?rev=319604&view=rev Log: [clangd] Try to appease gcc constexpr bug (58541)
Modified: clang-tools-extra/trunk/clangd/FuzzyMatch.cpp Modified: clang-tools-extra/trunk/clangd/FuzzyMatch.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/FuzzyMatch.cpp?rev=319604&r1=319603&r2=319604&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/FuzzyMatch.cpp (original) +++ clang-tools-extra/trunk/clangd/FuzzyMatch.cpp Fri Dec 1 18:28:29 2017 @@ -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. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits