aboutsummaryrefslogtreecommitdiff
path: root/lib/std/atomic/stack.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-10-26 15:43:57 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-10-26 15:43:57 -0700
commit79702c144d713de126d37637630c7b25ee9ecc82 (patch)
tree71a39e1be451f8265ab12cdca56c67e924711208 /lib/std/atomic/stack.zig
parentc6b3d06535f4227541c13fe75da347a485abdb4f (diff)
downloadzig-79702c144d713de126d37637630c7b25ee9ecc82.tar.gz
zig-79702c144d713de126d37637630c7b25ee9ecc82.zip
Sema: fix ret_ptr when inlining
Previously, it would emit a ret_ptr AIR instruction but that is not correct because such an instruction would reference the result pointer of the caller function rather than the callee function. Instead, we emit an alloc instruction in this case. `ret_load` already handles inlining correctly.
Diffstat (limited to 'lib/std/atomic/stack.zig')
0 files changed, 0 insertions, 0 deletions