projects
/
platform
/
upstream
/
libffi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f466aad
)
AArch64: Fix void fall-through case when assertions are enabled
author
Zachary Waldowski
<zach@waldowski.me>
Wed, 5 Feb 2014 19:22:52 +0000
(14:22 -0500)
committer
Zachary Waldowski
<zach@waldowski.me>
Wed, 5 Feb 2014 19:29:08 +0000
(14:29 -0500)
src/aarch64/ffi.c
patch
|
blob
|
history
diff --git
a/src/aarch64/ffi.c
b/src/aarch64/ffi.c
index
a16f80f
..
7d5aa40
100644
(file)
--- 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);