[PATCH] D33036: [Support/Compiler.h] - Use gnu::fallthrough for LLVM_FALLTHROUGH when available.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 10 11:51:01 PDT 2017
ruiu added inline comments.
================
Comment at: Compiler.h:236-237
#define LLVM_FALLTHROUGH [[clang::fallthrough]]
+#elif __has_cpp_attribute(gnu::fallthrough)
+#define LLVM_FALLTHROUGH [[gnu::fallthrough]]
#else
----------------
I think you want to move this before !__cplusplus to define LLVM_FALLTHROUGH even !__cplusplus.
https://reviews.llvm.org/D33036
More information about the llvm-commits
mailing list