aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Sema.zig10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index 074a102c95..05ce2adb77 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -20405,6 +20405,16 @@ fn beginComptimePtrMutation(
.ty = elem_ty,
},
+ .the_only_possible_value => {
+ const duped = try sema.arena.create(Value);
+ duped.* = Value.initTag(.the_only_possible_value);
+ return ComptimePtrMutationKit{
+ .decl_ref_mut = parent.decl_ref_mut,
+ .val = duped,
+ .ty = elem_ty,
+ };
+ },
+
else => unreachable,
}
},