AArch64: Fix void fall-through case when assertions are enabled
authorZachary Waldowski <zach@waldowski.me>
Wed, 5 Feb 2014 19:22:52 +0000 (14:22 -0500)
committerZachary Waldowski <zach@waldowski.me>
Wed, 5 Feb 2014 19:29:08 +0000 (14:29 -0500)
src/aarch64/ffi.c

index a16f80f..7d5aa40 100644 (file)
@@ -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);