[libcxx-commits] [PATCH] D72314: [libcxx] fix incorrect attribute property

Kazuaki Ishizaki via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 6 21:55:23 PST 2020


kiszk created this revision.
Herald added a reviewer: EricWF.
Herald added subscribers: libcxx-commits, ldionne, christof.
Herald added a project: libc++.

`__has_attribute(fallthough)` -> `__has_attribute(fallthrough)`
This is a follow-up of https://reviews.llvm.org/D72287


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72314

Files:
  libcxx/include/__config


Index: libcxx/include/__config
===================================================================
--- libcxx/include/__config
+++ libcxx/include/__config
@@ -1300,7 +1300,7 @@
 #  define _LIBCPP_FALLTHROUGH() [[fallthrough]]
 #elif __has_cpp_attribute(clang::fallthrough)
 #  define _LIBCPP_FALLTHROUGH() [[clang::fallthrough]]
-#elif __has_attribute(fallthough) || _GNUC_VER >= 700
+#elif __has_attribute(fallthrough) || _GNUC_VER >= 700
 #  define _LIBCPP_FALLTHROUGH() __attribute__((__fallthrough__))
 #else
 #  define _LIBCPP_FALLTHROUGH() ((void)0)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72314.236517.patch
Type: text/x-patch
Size: 556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200107/6c08b656/attachment.bin>


More information about the libcxx-commits mailing list