[Unwind] Harmonise exception class for EHABI spec.
EHABI defines the exception class as char[8] instead of uint64_t [1].
For ABI compatibility the ABI the definition needs to be updated.
[1] https://github.com/ARM-software/abi-aa/blob/main/ehabi32/ehabi32.rst#82language-independent-unwinding-types-and-functions
Reviewed By: manojgupta, MaskRay, #libunwind
Differential Revision: https://reviews.llvm.org/D109047
NOKEYCHECK=True
GitOrigin-RevId: f5b997e6b7061323fff13fafcc0c311d9e78e848
diff --git a/test/forceunwind.pass.cpp b/test/forceunwind.pass.cpp
index e74aa3f..4666972 100644
--- a/test/forceunwind.pass.cpp
+++ b/test/forceunwind.pass.cpp
@@ -27,7 +27,7 @@
_Unwind_Exception ex;
_Unwind_Reason_Code stop(int version, _Unwind_Action actions,
- uint64_t exceptionClass,
+ _Unwind_Exception_Class exceptionClass,
_Unwind_Exception *exceptionObject,
struct _Unwind_Context *context,
void *stop_parameter) {
@@ -57,7 +57,7 @@
#if defined(_LIBUNWIND_ARM_EHABI)
// Create a mock exception object.
memset(e, '\0', sizeof(*e));
- e->exception_class = 0x434C4E47554E5700; // CLNGUNW\0
+ strcpy(reinterpret_cast<char *>(&e->exception_class), "CLNGUNW");
#endif
_Unwind_ForcedUnwind(e, stop, (void *)&foo);
}