]> granicus.if.org Git - clang/commitdiff
[Headers] Expand _Unwind_Exception for SEH on MinGW/x86_64
authorMartin Storsjo <martin@martin.st>
Tue, 7 Aug 2018 20:02:40 +0000 (20:02 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 7 Aug 2018 20:02:40 +0000 (20:02 +0000)
This matches how GCC defines this struct.

Differential Revision: https://reviews.llvm.org/D50380

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339170 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/unwind.h

index 345fa4d0c1930cd02e0258e5f13119b9f2ebb607..0e8317e5b9d90c0f9b0876a5c9aab73232f2c46b 100644 (file)
@@ -154,8 +154,12 @@ struct _Unwind_Control_Block {
 struct _Unwind_Exception {
   _Unwind_Exception_Class exception_class;
   _Unwind_Exception_Cleanup_Fn exception_cleanup;
+#if !defined (__USING_SJLJ_EXCEPTIONS__) && defined (__SEH__)
+  _Unwind_Word private_[6];
+#else
   _Unwind_Word private_1;
   _Unwind_Word private_2;
+#endif
   /* The Itanium ABI requires that _Unwind_Exception objects are "double-word
    * aligned".  GCC has interpreted this to mean "use the maximum useful
    * alignment for the target"; so do we. */