llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libunwind

Author: Alex Rønne Petersen (alexrp)

<details>
<summary>Changes</summary>

This would previously fail the static assertions in `UnwindCursor.hpp` due to 
`UnwindCursor`'s size not matching `unw_cursor_t`'s size. As is done for MIPS 
N32, this just declares the appropriate size in `__libunwind_config.h`.

Note: I don't have commit access.

---
Full diff: https://github.com/llvm/llvm-project/pull/116608.diff


1 Files Affected:

- (modified) libunwind/include/__libunwind_config.h (+3) 


``````````diff
diff --git a/libunwind/include/__libunwind_config.h 
b/libunwind/include/__libunwind_config.h
index 028b9e3baa8065..bb7fe4c83a3c17 100644
--- a/libunwind/include/__libunwind_config.h
+++ b/libunwind/include/__libunwind_config.h
@@ -53,6 +53,9 @@
 #    else
 #      define _LIBUNWIND_CURSOR_SIZE 66
 #    endif
+#  elif defined(__ILP32__)
+#    define _LIBUNWIND_CONTEXT_SIZE 21
+#    define _LIBUNWIND_CURSOR_SIZE 28
 #  else
 #    define _LIBUNWIND_CONTEXT_SIZE 21
 #    define _LIBUNWIND_CURSOR_SIZE 33

``````````

</details>


https://github.com/llvm/llvm-project/pull/116608
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to