Use va_stack_arg_builtin to get address of block arg in interp.
@@ -1648,6 +1648,7 @@ static void interp (MIR_context_t ctx, MIR_item_t func_item, va_list va, MIR_val
case MIR_T_D: arg_vals[i].d = va_arg (va, double); break;
case MIR_T_LD: arg_vals[i].ld = va_arg (va, long double); break;
case MIR_T_P: arg_vals[i].a = va_arg (va, void *); break;
+ case MIR_T_BLK: arg_vals[i].a = va_stack_arg_builtin (va, arg_vars[i].size); break;
default: mir_assert (FALSE);
}
}
