[Openmp-commits] [PATCH] D72287: [OpenMP] Fix incorrect property of __has_attribute() macro

Kazuaki Ishizaki via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Jan 6 09:56:49 PST 2020

kiszk created this revision.
Herald added subscribers: openmp-commits, guansong.
Herald added a reviewer: jdoerfert.
Herald added a project: OpenMP.

`__has_attribute(fallthough)` -> `__has_attribute(fallthrough)`

  rG LLVM Github Monorepo



Index: openmp/runtime/src/kmp_os.h
--- openmp/runtime/src/kmp_os.h
+++ openmp/runtime/src/kmp_os.h
@@ -313,7 +313,7 @@
 #  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__))
 #  define KMP_FALLTHROUGH() ((void)0)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72287.236400.patch
Type: text/x-patch
Size: 544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200106/54a49b0e/attachment.bin>

More information about the Openmp-commits mailing list