Commit b4df9cf9cc4a9a9401a53fd6bea1f3c2c283b97b

Zachary Waldowski 2014-02-05T14:22:52

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);