Fix SemIR not showing insts used to compute FieldDecl type (#7706)

Add an `ExprRegionId` to `FieldDecl`. This required moving the `NameId`
into `Field`.
This commit is contained in:
Nicholas Bishop
2026-09-02 20:28:05 +00:00
committed by GitHub
parent ed074e85ab
commit d8bb181db8
93 changed files with 1117 additions and 878 deletions
+4 -2
View File
@@ -162,7 +162,9 @@ fn Run() -> i32 {
// CHECK:STDOUT: %return.param.loc20: ref %i32 = out_param call_param1
// CHECK:STDOUT: %return.loc20: ref %i32 = return_slot %return.param.loc20
// CHECK:STDOUT: }
// CHECK:STDOUT: %.loc22: %Class.elem = field_decl k, element0 [concrete]
// CHECK:STDOUT: %field_decl: %Class.elem = field_decl k, element0, %i32 in [concrete] {
// CHECK:STDOUT: %i32: type = type_literal constants.%i32 [concrete = constants.%i32]
// CHECK:STDOUT: }
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%struct_type.k [concrete = constants.%complete_type.d82]
// CHECK:STDOUT: complete_type_witness = %complete_type
// CHECK:STDOUT:
@@ -170,7 +172,7 @@ fn Run() -> i32 {
// CHECK:STDOUT: .Self = constants.%Class
// CHECK:STDOUT: .F = %Class.F.decl
// CHECK:STDOUT: .G = %Class.G.decl
// CHECK:STDOUT: .k = %.loc22
// CHECK:STDOUT: .k = %field_decl
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: fn @Class.F(%n.param: %i32) -> out %return.param: %i32 {