aboutsummaryrefslogtreecommitdiff
path: root/src/astgen.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/astgen.zig')
-rw-r--r--src/astgen.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/astgen.zig b/src/astgen.zig
index 1142907faf..5cf8e12587 100644
--- a/src/astgen.zig
+++ b/src/astgen.zig
@@ -625,7 +625,7 @@ fn varDecl(
const alloc = try addZIRUnOp(mod, scope, name_src, .alloc_mut, type_inst);
break :a .{ .alloc = alloc, .result_loc = .{ .ptr = alloc } };
} else a: {
- const alloc = try addZIRNoOpT(mod, scope, name_src, .alloc_inferred);
+ const alloc = try addZIRNoOpT(mod, scope, name_src, .alloc_inferred_mut);
resolve_inferred_alloc = &alloc.base;
break :a .{ .alloc = &alloc.base, .result_loc = .{ .inferred_ptr = alloc } };
};