Return the NameId for a new instruction regardless if it's unresolved because it's poisoned or not (#4861)

i.e. Support `Poisoned` in `NameContext::name_id_for_new_inst()`.
Part of #4622.
This commit is contained in:
Boaz Brickner
2025-01-29 14:20:05 +00:00
committed by GitHub
parent 3bd7252f29
commit 7c01bb4e5c
3 changed files with 141 additions and 136 deletions
@@ -412,8 +412,8 @@ private interface Redecl {}
// CHECK:STDOUT: constants {
// CHECK:STDOUT: %F.type: type = fn_type @F [template]
// CHECK:STDOUT: %F: %F.type = struct_value () [template]
// CHECK:STDOUT: %.type: type = facet_type <@.1> [template]
// CHECK:STDOUT: %Self: %.type = bind_symbolic_name Self, 0 [symbolic]
// CHECK:STDOUT: %Forward.type: type = facet_type <@Forward> [template]
// CHECK:STDOUT: %Self: %Forward.type = bind_symbolic_name Self, 0 [symbolic]
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: file {
@@ -433,11 +433,11 @@ private interface Redecl {}
// CHECK:STDOUT: }
// CHECK:STDOUT: %i: <error> = bind_name i, %i.param
// CHECK:STDOUT: }
// CHECK:STDOUT: %.decl: type = interface_decl @.1 [template = constants.%.type] {} {}
// CHECK:STDOUT: %Forward.decl: type = interface_decl @Forward [template = constants.%Forward.type] {} {}
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: interface @.1 {
// CHECK:STDOUT: %Self: %.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self]
// CHECK:STDOUT: interface @Forward {
// CHECK:STDOUT: %Self: %Forward.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self]
// CHECK:STDOUT:
// CHECK:STDOUT: !members:
// CHECK:STDOUT: .Self = %Self