stage2: isGenericPoison InternPool awareness

This commit is contained in:
Andrew Kelley
2023-05-02 20:01:32 -07:00
parent 00f82f1c46
commit 50f33734c6
4 changed files with 47 additions and 31 deletions

View File

@@ -5728,7 +5728,7 @@ pub fn analyzeFnBody(mod: *Module, func: *Fn, arena: Allocator) SemaError!Air {
const param_ty = if (func.comptime_args) |comptime_args| t: {
const arg_tv = comptime_args[total_param_index];
const arg_val = if (arg_tv.val.tag() != .generic_poison)
const arg_val = if (!arg_tv.val.isGenericPoison())
arg_tv.val
else if (arg_tv.ty.onePossibleValue(mod)) |opv|
opv