zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit f1d2141849e0ae01910bef52cada0de0d0322e72 (tree)
parent e42b5e76bacaf221f3da3f4ffe769f603a51cf44
Author: Jakub Konka <kubkon@jakubkonka.com>
Date:   Tue,  8 Feb 2022 23:48:42 +0100

stage2: handle direct and got load for stack args

Diffstat:
Msrc/arch/x86_64/CodeGen.zig | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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);