aarch64: Treat void return as not passed in registers
authorRichard Henderson <rth@redhat.com>
Wed, 22 Oct 2014 16:33:59 +0000 (12:33 -0400)
committerRichard Henderson <rth@twiddle.net>
Wed, 12 Nov 2014 08:28:44 +0000 (09:28 +0100)
This lets us do less post-processing when there's no return value.

src/aarch64/ffi.c

index 58d088b..6c338e1 100644 (file)
@@ -383,6 +383,7 @@ is_register_candidate (ffi_type *ty)
   switch (ty->type)
     {
     case FFI_TYPE_VOID:
+      return 0;
     case FFI_TYPE_FLOAT:
     case FFI_TYPE_DOUBLE:
     case FFI_TYPE_LONGDOUBLE: