Tweak r355278 for compatibility with gcc 6 and earlier.

llvm-svn: 355280
This commit is contained in:
James Y Knight 2019-03-02 21:55:36 +00:00
parent 1ce395f25e
commit cf03bd92d6
1 changed files with 1 additions and 1 deletions

View File

@ -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;