zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit eba8892b8495674e3d7d576dc6f9fb95e8dfa407 (tree)
parent ecb4293afe673331b81d6f9e917024b31d2ecdc0
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon,  4 Jul 2022 16:44:41 -0700

Sema: resolve lazy value before hashing it for generic fn

Diffstat:
Msrc/Sema.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/Sema.zig b/src/Sema.zig @@ -5736,6 +5736,7 @@ fn instantiateGenericCall( const arg_src = call_src; // TODO better source location const arg_ty = sema.typeOf(uncasted_args[i]); const arg_val = try sema.resolveValue(block, arg_src, uncasted_args[i]); + try sema.resolveLazyValue(block, arg_src, arg_val); arg_val.hash(arg_ty, &hasher, mod); if (is_anytype) { arg_ty.hashWithHasher(&hasher, mod);