freebsd-dev/contrib/llvm-project
Dimitry Andric ebc1d79aff Reapply r349876:
Apply a workaround to be able to build clang 8.0.0 headers with clang
3.4.1, which is still in the stable/10 branch.

It looks like clang 3.4.1 implements static_asserts by instantiating a
temporary static object, and if those are in an anonymous union, it
results in "error: anonymous union can only contain non-static data
members".

To work around this implementation limitation, move the static_asserts
in question out of the anonymous unions.

This should make building the latest stable/11 from stable/10 possible
again.

Reported by:	Mike Tancsa <mike@sentex.net>
2020-08-06 16:42:48 +00:00
..
clang Reapply r349876: 2020-08-06 16:42:48 +00:00
compiler-rt Reapply r329859 (partially, by imp): 2020-08-06 16:12:13 +00:00
libcxx Reapply r343111 (partially, by mckusick): 2020-08-06 16:25:56 +00:00
libunwind Reapply r310365 (by emaste): 2020-08-02 18:12:14 +00:00
lld Reapply r327026 (partially): 2020-08-02 18:34:29 +00:00
lldb Reapply r344852: 2020-08-06 16:27:24 +00:00
llvm Reapply r311165: 2020-08-02 18:18:16 +00:00
openmp Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 2020-07-31 22:23:32 +00:00
FREEBSD-Xlist Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 2020-07-31 21:22:58 +00:00