aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-04-21 20:22:41 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-04-21 20:27:06 -0700
commit9c5fe5b5a435729f2bfc61a45dc6ebd0969faf89 (patch)
tree7cc5036a66a18b7e43388c9d1c99f581c908fd9b /test
parent804d0661f5afdc1ca10a3f6d127a7631bcfa940b (diff)
downloadzig-9c5fe5b5a435729f2bfc61a45dc6ebd0969faf89.tar.gz
zig-9c5fe5b5a435729f2bfc61a45dc6ebd0969faf89.zip
LLVM: C calling convention lowering fixes
For parameters and return types of functions with the C calling convention, the LLVM backend now has a special lowering for the function type that makes the function adhere to the C ABI. The AIR instruction lowerings for call, ret, and ret_load are adjusted to bitcast the real type to the ABI type if necessary. More work on this will need to be done, however, this improvement is enough that stage3 now passes all the same behavior tests that stage2 passes - notably, translate-c no longer has a segfault due to C ABI issues with Zig's Clang C API wrapper.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions