aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2023-01-16 14:46:50 +0200
committerVeikka Tuominen <git@vexu.eu>2023-01-17 20:28:43 +0200
commit24646b8b5d026a75deb5b3eace0e9142f0719da0 (patch)
tree56e182a27d3e52b4b6eca48848cd21439256b1b6 /src/codegen
parent8b35f09f4ae29eb2768d47e8a8bae0f4131d6bad (diff)
downloadzig-24646b8b5d026a75deb5b3eace0e9142f0719da0.tar.gz
zig-24646b8b5d026a75deb5b3eace0e9142f0719da0.zip
windows x86_64 C ABI: pass byref structs as byref_mut
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/llvm.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index 05bc957bbb..abcb9b4060 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -10668,8 +10668,7 @@ const ParamTypeIterator = struct {
.memory => {
it.zig_index += 1;
it.llvm_index += 1;
- it.byval_attr = true;
- return .byref;
+ return .byref_mut;
},
.sse => {
it.zig_index += 1;