diff options
author | Mike Pall <mike> | 2012-10-09 21:50:09 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-10-09 21:51:30 +0200 |
commit | 4a97faef7ef7e9b12235adcb98e3e591b0db7122 (patch) | |
tree | 44c9e342de0a193c47bb8ad097926370dd9a4c8a /src | |
parent | a7d1dbacb19c3e5d0c4888cdf59913693e4648b6 (diff) | |
download | luajit-4a97faef7ef7e9b12235adcb98e3e591b0db7122.tar.gz luajit-4a97faef7ef7e9b12235adcb98e3e591b0db7122.tar.bz2 luajit-4a97faef7ef7e9b12235adcb98e3e591b0db7122.zip |
FFI: Compile array/struct copies.
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_crecord.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lj_crecord.c b/src/lj_crecord.c index 47ae65b4..6a22544a 100644 --- a/src/lj_crecord.c +++ b/src/lj_crecord.c | |||
@@ -526,11 +526,11 @@ static TRef crec_ct_ct(jit_State *J, CType *d, CType *s, TRef dp, TRef sp, | |||
526 | 526 | ||
527 | /* Destination is an array. */ | 527 | /* Destination is an array. */ |
528 | case CCX(A, A): | 528 | case CCX(A, A): |
529 | goto err_nyi; | ||
530 | |||
531 | /* Destination is a struct/union. */ | 529 | /* Destination is a struct/union. */ |
532 | case CCX(S, S): | 530 | case CCX(S, S): |
533 | goto err_nyi; | 531 | if (dp == 0) goto err_conv; |
532 | crec_copy(J, dp, sp, lj_ir_kint(J, dsize), d); | ||
533 | break; | ||
534 | 534 | ||
535 | default: | 535 | default: |
536 | err_conv: | 536 | err_conv: |