mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Use TupleAccess instead of TupleIndex (#4318)
This change removes the `TupleIndex` instruction, and instead consolidate it with the `TupleAccess` instruction, per this [discussion](https://discord.com/channels/655572317891461132/655578254970716160/1271195835975204946). This change, in turn removes `AnyAggregateIndex`.
This commit is contained in:
@@ -209,7 +209,7 @@ fn D() {}
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %c.ref: %.3 = name_ref c, %c
|
||||
// CHECK:STDOUT: %.loc6_47: i32 = int_literal 0 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc6_46: i32 = tuple_index %c.ref, %.loc6_47
|
||||
// CHECK:STDOUT: %.loc6_46: i32 = tuple_access %c.ref, element0
|
||||
// CHECK:STDOUT: %.loc6_48: %.4 = struct_literal (%.loc6_46)
|
||||
// CHECK:STDOUT: %struct: %.4 = struct_value (%.loc6_46)
|
||||
// CHECK:STDOUT: %.loc6_49: %.4 = converted %.loc6_48, %struct
|
||||
|
||||
Reference in New Issue
Block a user