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

Jim Lin via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 7 17:32:29 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG9de6a3987251: [libcxx] fix incorrect attribute property (authored by kiszk, committed by Jim).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72314/new/

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.236725.patch
Type: text/x-patch
Size: 556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200108/577f8143/attachment-0001.bin>


More information about the libcxx-commits mailing list