mirror of
https://github.com/ziglang/zig.git
synced 2025-12-30 01:53:16 +00:00
Sema: resolve lazy value before hashing it for generic fn
This commit is contained in:
parent
ecb4293afe
commit
eba8892b84
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user