[libcxx-commits] [libcxx] 9de6a39 - [libcxx] fix incorrect attribute property
Jim Lin via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 7 17:32:02 PST 2020
Author: Kazuaki Ishizaki
Date: 2020-01-08T09:35:26+08:00
New Revision: 9de6a3987251d05eb734e34597dcde2f12aac9ba
URL: https://github.com/llvm/llvm-project/commit/9de6a3987251d05eb734e34597dcde2f12aac9ba
DIFF: https://github.com/llvm/llvm-project/commit/9de6a3987251d05eb734e34597dcde2f12aac9ba.diff
LOG: [libcxx] fix incorrect attribute property
Summary:
`__has_attribute(fallthough)` -> `__has_attribute(fallthrough)`
This is a follow-up of https://reviews.llvm.org/D72287
Reviewers: EricWF, mclow.lists, Jim
Reviewed By: Jim
Subscribers: christof, ldionne, libcxx-commits
Tags: #libc
Differential Revision: https://reviews.llvm.org/D72314
Added:
Modified:
libcxx/include/__config
Removed:
################################################################################
diff --git a/libcxx/include/__config b/libcxx/include/__config
index 9f5f84526632..7394d443b729 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -1300,7 +1300,7 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
# 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)
More information about the libcxx-commits
mailing list