Re-add the check for __has_attribute in StringLiteral.

llvm-svn: 289858
This commit is contained in:
Zachary Turner 2016-12-15 19:33:31 +00:00
parent b76f6c2745
commit 578113ffb7
1 changed files with 1 additions and 1 deletions

View File

@ -847,7 +847,7 @@ namespace llvm {
public:
template <size_t N>
constexpr StringLiteral(const char (&Str)[N])
#if defined(__clang__)
#if defined(__clang__) && __has_attribute(enable_if)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"
__attribute((enable_if(__builtin_strlen(Str) == N - 1,