From eba8892b8495674e3d7d576dc6f9fb95e8dfa407 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 4 Jul 2022 16:44:41 -0700 Subject: Sema: resolve lazy value before hashing it for generic fn --- src/Sema.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Sema.zig') diff --git a/src/Sema.zig b/src/Sema.zig index b946e29057..4c43746e57 100644 --- 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); -- cgit v1.2.3