[Openmp-commits] [openmp] 19433b1 - [OpenMP] Fix incorrect property of __has_attribute() macro
Kelvin Li via Openmp-commits
openmp-commits at lists.llvm.org
Mon Jan 6 12:09:08 PST 2020
Author: Kelvin Li
Date: 2020-01-06T15:00:10-05:00
New Revision: 19433b199d1ccc8798475dbe9084fc66360ec5d5
URL: https://github.com/llvm/llvm-project/commit/19433b199d1ccc8798475dbe9084fc66360ec5d5
DIFF: https://github.com/llvm/llvm-project/commit/19433b199d1ccc8798475dbe9084fc66360ec5d5.diff
LOG: [OpenMP] Fix incorrect property of __has_attribute() macro
__has_attribute(fallthough) -> __has_attribute(fallthrough)
Submitted by: kiszk (Kazuaki Ishizaki <ishizaki at jp.ibm.com>)
Differential Revision: https://reviews.llvm.org/D72287
Added:
Modified:
openmp/runtime/src/kmp_os.h
Removed:
################################################################################
diff --git a/openmp/runtime/src/kmp_os.h b/openmp/runtime/src/kmp_os.h
index cd942a9c4430..bfe7765b2a96 100644
--- a/openmp/runtime/src/kmp_os.h
+++ b/openmp/runtime/src/kmp_os.h
@@ -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)
More information about the Openmp-commits
mailing list