stage2 llvm: fix passing packed structs to callconv(.C) functions

Closes #12704
This commit is contained in:
Veikka Tuominen
2022-09-01 13:48:36 +03:00
parent 2cd3989cb3
commit 4462d08224
2 changed files with 28 additions and 0 deletions

View File

@@ -9853,6 +9853,8 @@ const ParamTypeIterator = struct {
.AnyFrame,
.Vector,
=> true,
.Struct => ty.containerLayout() == .Packed,
.Union => ty.containerLayout() == .Packed,
else => false,
};