Fix importing of generic types. (#4196)

Ensure we don't lose the symbolic constant value by mapping through to
the underlying inst ID.
This commit is contained in:
Richard Smith
2024-08-07 19:12:00 +00:00
committed by GitHub
parent f0fd1d2342
commit 91f56f72a5
27 changed files with 142 additions and 114 deletions
@@ -194,7 +194,7 @@ var arr: [i32; 1 + 2] = (3, 4, 3 + 4);
// CHECK:STDOUT: generic fn @Op.2(constants.%Self: %.2) {
// CHECK:STDOUT: %Self: %.2 = bind_symbolic_name Self 0 [symbolic = %Self (constants.%Self)]
// CHECK:STDOUT:
// CHECK:STDOUT: fn[%self: %Self](%other: %Self) -> %Self;
// CHECK:STDOUT: fn[%self: @Op.2.%Self (%Self)](%other: @Op.2.%Self (%Self)) -> @Op.2.%Self (%Self);
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: fn @__global_init() {