mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Include the complete type witness for a class in its SemIR output. (#4599)
This seems slightly redundant for a locally-defined class, where there will be a complete_type_witness instruction earlier in the class, but is important for imported classes, where we're currently doing the wrong thing in a way that's invisible in formatted SemIR.
This commit is contained in:
@@ -82,6 +82,7 @@ fn Foo(ptr: C*) {
|
||||
// CHECK:STDOUT: .Self = constants.%C
|
||||
// CHECK:STDOUT: .Member = %Member.decl
|
||||
// CHECK:STDOUT: .field = %.loc13_12
|
||||
// CHECK:STDOUT: complete_type_witness = %.loc14
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @Member[%self.param_patt: %C]();
|
||||
|
||||
Reference in New Issue
Block a user