AArch64: Fix void fall-through case when assertions are enabled
diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c
index a16f80f..7d5aa40 100644
--- a/src/aarch64/ffi.c
+++ b/src/aarch64/ffi.c
@@ -130,6 +130,8 @@ get_basic_type_addr (unsigned short type, struct call_context *context,
case FFI_TYPE_UINT64:
case FFI_TYPE_SINT64:
return get_x_addr (context, n);
+ case FFI_TYPE_VOID:
+ return NULL;
default:
FFI_ASSERT (0);
return NULL;
@@ -528,6 +530,8 @@ copy_basic_type (void *dest, void *source, unsigned short type)
case FFI_TYPE_SINT64:
*(ffi_sarg *) dest = *(SINT64 *) source;
break;
+ case FFI_TYPE_VOID:
+ break;
default:
FFI_ASSERT (0);