aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86_64/CodeGen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-10-23 12:16:58 -0700
committerGitHub <noreply@github.com>2022-10-23 12:16:58 -0700
commit04472af328632d80ea9ea089cfd5de8fac6dd039 (patch)
tree7b8d46635c0a0accc82277a6209a87e4d4b9d13b /src/arch/x86_64/CodeGen.zig
parenta3033c7bd9ec26abd2f831cf75eb85f06590deed (diff)
parentf2a7aba586157482131611c57a283f3b4cfee98d (diff)
downloadzig-04472af328632d80ea9ea089cfd5de8fac6dd039.tar.gz
zig-04472af328632d80ea9ea089cfd5de8fac6dd039.zip
Merge pull request #13251 from Vexu/c-abi
implement ARM C ABI, separate C ABI tests from standalone tests
Diffstat (limited to 'src/arch/x86_64/CodeGen.zig')
-rw-r--r--src/arch/x86_64/CodeGen.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86_64/CodeGen.zig b/src/arch/x86_64/CodeGen.zig
index a1b354482b..5f793aaeb9 100644
--- a/src/arch/x86_64/CodeGen.zig
+++ b/src/arch/x86_64/CodeGen.zig
@@ -7149,7 +7149,7 @@ fn resolveCallingConventionValues(self: *Self, fn_ty: Type) !CallMCValues {
const classes: []const abi.Class = switch (self.target.os.tag) {
.windows => &[1]abi.Class{abi.classifyWindows(ty, self.target.*)},
- else => mem.sliceTo(&abi.classifySystemV(ty, self.target.*), .none),
+ else => mem.sliceTo(&abi.classifySystemV(ty, self.target.*, .arg), .none),
};
if (classes.len > 1) {
return self.fail("TODO handle multiple classes per type", .{});