x86: Handle void arguments as if an empty structure
authorRichard Henderson <rth@twiddle.net>
Thu, 11 Dec 2014 22:16:00 +0000 (14:16 -0800)
committerRichard Henderson <rth@twiddle.net>
Thu, 11 Dec 2014 22:16:00 +0000 (14:16 -0800)
commit2f652469684d6d2b3e54705294c7e81cffe1341f
tree4c4ec386814a464123203550414654dc4c9daca7
parent097ccfd6a6b94a3c3b5bfc269a7afd1dc4f7a051
x86: Handle void arguments as if an empty structure

Since libffi currently doesn't allow empty structures, libgo
currently maps them to ffi_type_void.  Given that we'll abort
on this case, handle it gracefully.
src/x86/ffi64.c