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 a16f80f5ac97ce5570bc310570586fe0b0c72749..7d5aa40d8d9320b49d4efcb95f4c5b37cb01f556 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);