From 2d39f7cc1f9ddd08012f5a36cb62f5b6f5e34347 Mon Sep 17 00:00:00 2001 From: James Y Knight Date: Sat, 2 Mar 2019 21:55:36 +0000 Subject: [PATCH] Tweak r355278 for compatibility with gcc 6 and earlier. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355280 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Sanitizers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Basic/Sanitizers.cpp b/lib/Basic/Sanitizers.cpp index 8b5889c812..f5f81b5fb3 100644 --- a/lib/Basic/Sanitizers.cpp +++ b/lib/Basic/Sanitizers.cpp @@ -18,7 +18,7 @@ using namespace clang; // Once LLVM switches to C++17, the constexpr variables can be inline and we // won't need this. -#define SANITIZER(NAME, ID) const SanitizerMask SanitizerKind::ID; +#define SANITIZER(NAME, ID) constexpr SanitizerMask SanitizerKind::ID; #define SANITIZER_GROUP(NAME, ID, ALIAS) \ constexpr SanitizerMask SanitizerKind::ID; \ constexpr SanitizerMask SanitizerKind::ID##Group; -- 2.40.0