Support: Avoid errors with LLVM_FALLTHROUGH in clang 3.6 and below in C mode
authorJustin Bogner <mail@justinbogner.com>
Wed, 31 Aug 2016 23:43:14 +0000 (23:43 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 31 Aug 2016 23:43:14 +0000 (23:43 +0000)
commitf1382fc71eef026f20608e1e8e5633ef6b428a96
tree4782f3faa638e2bfcdfc0d3f5c0ea8acce27218b
parentf3e82f14181655e6e8ccac1212da888f4d83a367
Support: Avoid errors with LLVM_FALLTHROUGH in clang 3.6 and below in C mode

Older versions of clang defined __has_cpp_attribute in C mode, but
would choke on scoped attributes, as per llvm.org/PR23435. Since we
support building with clang all the way back to 3.1, we have to work
around this issue.

llvm-svn: 280326
llvm/include/llvm/Support/Compiler.h