Skip to content

Commit

Permalink
Show better error for OGetMem using i64 on 32 bit (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk authored Dec 30, 2024
1 parent 67980ba commit c9c4c8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/jit.c
Original file line number Diff line number Diff line change
Expand Up @@ -3760,6 +3760,11 @@ int hl_jit_function( jit_ctx *ctx, hl_module *m, hl_function *f ) {
break;
case OGetMem:
{
#ifndef HL_64
if (dst->t->kind == HI64) {
error_i64();
}
#endif
preg *base = alloc_cpu(ctx, ra, true);
preg *offset = alloc_cpu64(ctx, rb, true);
store(ctx, dst, pmem2(&p,base->id,offset->id,1,0), false);
Expand Down

0 comments on commit c9c4c8b

Please sign in to comment.