[Headers][ARM] Allow `struct _Unwind_Exception` in unwind.h
authorRyan Prichard <rprichard@google.com>
Fri, 9 Dec 2022 23:15:22 +0000 (15:15 -0800)
committerRyan Prichard <rprichard@google.com>
Fri, 9 Dec 2022 23:16:20 +0000 (15:16 -0800)
commit106a99276f9e7b9eec9542cc2b4dcd8489eb1a6b
tree86d168dd040a7eda9f30b4def334e8972476928b
parent5df7b45ae4b501b2f95bb4a2f0b22f1721a1e61d
[Headers][ARM] Allow `struct _Unwind_Exception` in unwind.h

Use the same approach as used in libunwind/include/unwind_arm_ehabi.h
(D89570) and GCC's unwind-arm-common.h, so that _Unwind_Exception can be
used both with and without the struct tag.

Fixes a build failure in libcxxabi/test/forced_unwind1.pass.cpp.

Reviewed By: danielkiss

Differential Revision: https://reviews.llvm.org/D139503
clang/lib/Headers/unwind.h