aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-02-09 08:17:29 +0100
committerGitHub <noreply@github.com>2022-02-09 08:17:29 +0100
commit4d1e5ef730630badf92a613cdc57a42d2321df12 (patch)
tree0ff1abaaa906e41979a553acda71c61150dd1ca3 /src
parent97019bc56d27349e0aeb44faa9d3f738887abe7f (diff)
parentc689df1215fbe27485eb57751a407e6d5a991ca1 (diff)
downloadzig-4d1e5ef730630badf92a613cdc57a42d2321df12.tar.gz
zig-4d1e5ef730630badf92a613cdc57a42d2321df12.zip
Merge pull request #10846 from ziglang/x64-macho-bringup
stage2: handle direct and got load for stack args on x86_64-macos
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86_64/CodeGen.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/x86_64/CodeGen.zig b/src/arch/x86_64/CodeGen.zig
index 9abeadad5d..de8f907dea 100644
--- a/src/arch/x86_64/CodeGen.zig
+++ b/src/arch/x86_64/CodeGen.zig
@@ -3482,6 +3482,8 @@ fn genSetStackArg(self: *Self, ty: Type, stack_offset: i32, mcv: MCValue) InnerE
},
.memory,
.embedded_in_code,
+ .direct_load,
+ .got_load,
=> {
if (abi_size <= 8) {
const reg = try self.copyToTmpRegister(ty, mcv);