diff options
| author | Eric Fiselier <eric@efcs.ca> | 2017-05-05 20:50:24 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2017-05-05 20:50:24 +0000 |
| commit | 1a5733af6a84e3a19bef38353bac081de8c226fa (patch) | |
| tree | 1c8d1fcc471bfdd48f07fc758c5aac39415abf73 | |
| parent | 7dd8073284058905b7ad6c47e4cbdb00e39cd7f2 (diff) | |
| download | bcm5719-llvm-1a5733af6a84e3a19bef38353bac081de8c226fa.tar.gz bcm5719-llvm-1a5733af6a84e3a19bef38353bac081de8c226fa.zip | |
Fix detection for [[fallthrough]] with GCC
llvm-svn: 302285
| -rw-r--r-- | libcxx/include/__config | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/__config b/libcxx/include/__config index a9f9d0f8b75..2a2907494b2 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -1089,7 +1089,7 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container( # define _LIBCPP_DIAGNOSE_ERROR(...) #endif -#if __has_attribute(fallthough) || defined(_LIBCPP_COMPILER_GCC) +#if __has_attribute(fallthough) || _GNUC_VER >= 700 // Use a function like macro to imply that it must be followed by a semicolon #define _LIBCPP_FALLTHROUGH() __attribute__((__fallthrough__)) #else |

