Use GetStructType when building object repr structs (#5923)

I was thinking about this for destruction, which I may not be able to
use it for, but still think this may be a good change to keep features
consistent.
This commit is contained in:
Jon Ross-Perkins
2025-08-06 23:55:05 +00:00
committed by GitHub
parent 37d5046ceb
commit 55085de6aa
199 changed files with 794 additions and 1428 deletions
+1 -2
View File
@@ -553,8 +553,7 @@ fn MyF(bar: Cpp.Bar*);
// CHECK:STDOUT: impl_decl @Derived.as.Destroy.impl [concrete] {} {}
// CHECK:STDOUT: %Destroy.impl_witness_table = impl_witness_table (@Derived.as.Destroy.impl.%Derived.as.Destroy.impl.Op.decl), @Derived.as.Destroy.impl [concrete]
// CHECK:STDOUT: %Destroy.impl_witness: <witness> = impl_witness %Destroy.impl_witness_table [concrete = constants.%Destroy.impl_witness]
// CHECK:STDOUT: %struct_type.base: type = struct_type {.base: %Bar} [concrete = constants.%struct_type.base.36d]
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %struct_type.base [concrete = constants.%complete_type.fff]
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness constants.%struct_type.base.36d [concrete = constants.%complete_type.fff]
// CHECK:STDOUT: complete_type_witness = %complete_type
// CHECK:STDOUT:
// CHECK:STDOUT: !members: