Commit b55e03665ddf2423df9baee0d3172892ba781c26

Richard Henderson 2014-10-22T12:33:59

aarch64: Treat void return as not passed in registers This lets us do less post-processing when there's no return value.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c
index 58d088b..6c338e1 100644
--- a/src/aarch64/ffi.c
+++ b/src/aarch64/ffi.c
@@ -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: