mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
stage2: fix wrong value for Decl owns_tv
In the case of a comptime function call of a function that returns a type, resulting in a compiler crash on deinit().
This commit is contained in:
1 parent
f28868e8fd
commit
2b40815a22
4 files changed
+27
-24
No files matched your search
@@ -4037,7 +4037,6 @@ pub fn createAnonymousDeclFromDeclNamed(
|
||||
new_decl.ty = typed_value.ty;
|
||||
new_decl.val = typed_value.val;
|
||||
new_decl.has_tv = true;
|
||||
new_decl.owns_tv = true;
|
||||
new_decl.analysis = .complete;
|
||||
new_decl.generation = mod.generation;
|
||||
|
||||
|
||||
Reference in new issue
Block a user