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:
Andrew Kelley
2021-08-21 15:00:40 -07:00
parent f28868e8fd
commit 2b40815a22
4 changed files with 27 additions and 24 deletions

View File

@@ -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;