summaryrefslogtreecommitdiff
path: root/src/s390
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2012-10-11 10:55:25 -0400
committerAnthony Green <green@moxielogic.com>2012-10-11 10:55:25 -0400
commit048d2f41c3a6664b4b64bf21e804686662da4160 (patch)
tree568aa086f41328d8a81594a064841ee99aeda3e3 /src/s390
parentd330f19292da8f39a78a9e2b0ba08df8094e3bc5 (diff)
downloadlibffi-048d2f41c3a6664b4b64bf21e804686662da4160.tar.gz
Rebase
Diffstat (limited to 'src/s390')
-rw-r--r--src/s390/ffi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s390/ffi.c b/src/s390/ffi.c
index ca2675b..8adb5bc 100644
--- a/src/s390/ffi.c
+++ b/src/s390/ffi.c
@@ -750,7 +750,8 @@ ffi_prep_closure_loc (ffi_closure *closure,
void *user_data,
void *codeloc)
{
- FFI_ASSERT (cif->abi == FFI_SYSV);
+ if (cif->abi != FFI_SYSV)
+ return FFI_BAD_ABI;
#ifndef __s390x__
*(short *)&closure->tramp [0] = 0x0d10; /* basr %r1,0 */