void-packages/srcpkgs/llvm12/patches/compiler-rt-aarch64-ucontext.patch

11 lines
466 B
Diff

--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp.orig
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
@@ -1799,7 +1799,7 @@
static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) {
static const u32 kEsrMagic = 0x45535201;
- u8 *aux = ucontext->uc_mcontext.__reserved;
+ u8 *aux = reinterpret_cast<u8 *>(ucontext->uc_mcontext.__reserved);
while (true) {
_aarch64_ctx *ctx = (_aarch64_ctx *)aux;
if (ctx->size == 0) break;