vnmakarov / mir

A lightweight JIT compiler based on MIR (Medium Internal Representation) and C11 JIT compiler and interpreter based on MIR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue 361 test case failed

IIvm opened this issue · comments

commented

Build on Mac M2, in bbv branch, here is output:

./c-tests/new/issue361.c:./c-tests/new/issue361.c:13:13: incompatible types in assignment to an arithmetic type lvalue

Sorry for delay with the answer.

The test case should be run only on x86-64. It assigns va_list value to integer. On aarch64 va_list is a structure when on x86 it is a pointer. Therefore the test works fine on x86-64 and fails on aarch64.

I fixed this with 81a5729

commented

That's wonderful! I appreciate your explanation. Thank you!