[OpenMP] Fix incorrect property of __has_attribute() macro
authorKelvin Li <kkwli0@gmail.com>
Mon, 6 Jan 2020 20:00:10 +0000 (15:00 -0500)
committerKelvin Li <kkwli0@gmail.com>
Mon, 6 Jan 2020 20:00:10 +0000 (15:00 -0500)
__has_attribute(fallthough) -> __has_attribute(fallthrough)

Submitted by: kiszk (Kazuaki Ishizaki <ishizaki@jp.ibm.com>)

Differential Revision: https://reviews.llvm.org/D72287

openmp/runtime/src/kmp_os.h

index cd942a9..bfe7765 100644 (file)
@@ -313,7 +313,7 @@ extern "C" {
 #  define KMP_FALLTHROUGH() [[fallthrough]]
 #elif __has_cpp_attribute(clang::fallthrough)
 #  define KMP_FALLTHROUGH() [[clang::fallthrough]]
-#elif __has_attribute(fallthough) || __GNUC__ >= 7
+#elif __has_attribute(fallthrough) || __GNUC__ >= 7
 #  define KMP_FALLTHROUGH() __attribute__((__fallthrough__))
 #else
 #  define KMP_FALLTHROUGH() ((void)0)