Skip to content

Commit

Permalink
Undo change. autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
josh11b committed Jan 10, 2025
1 parent ac3a6a2 commit 6d5e579
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion toolchain/check/impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ auto AddConstantsToImplWitnessFromConstraint(Context& context,
}

// For each non-function associated constant, update witness entry.
for (auto [index, decl_id] : llvm::enumerate(assoc_entities)) {
for (auto index : llvm::seq(assoc_entities.size())) {
auto decl_id = assoc_entities[index];
decl_id =
context.constant_values().GetInstId(SemIR::GetConstantValueInSpecific(
context.sem_ir(), interface_type->specific_id, decl_id));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ impl () as I where .N = 2 {
// CHECK:STDOUT: }
// CHECK:STDOUT: %Core.import = import Core
// CHECK:STDOUT: %I.decl: type = interface_decl @I [template = constants.%I.type] {} {}
// CHECK:STDOUT: impl_decl @impl.43 [template] {} {
// CHECK:STDOUT: impl_decl @impl.44 [template] {} {
// CHECK:STDOUT: %.loc14_7.1: %empty_tuple.type = tuple_literal ()
// CHECK:STDOUT: %.loc14_7.2: type = converted %.loc14_7.1, constants.%empty_tuple.type [template = constants.%empty_tuple.type]
// CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [template = constants.%I.type]
Expand Down Expand Up @@ -537,7 +537,7 @@ impl () as I where .N = 2 {
// CHECK:STDOUT: witness = (%N, %F.decl)
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: impl @impl.43: %.loc14_7.2 as %.loc14_14 {
// CHECK:STDOUT: impl @impl.44: %.loc14_7.2 as %.loc14_14 {
// CHECK:STDOUT: %F.decl: %F.type.936 = fn_decl @F.2 [template = constants.%F.6b2] {
// CHECK:STDOUT: %self.patt: %empty_tuple.type = binding_pattern self
// CHECK:STDOUT: %self.param_patt: %empty_tuple.type = value_param_pattern %self.patt, runtime_param0
Expand All @@ -550,7 +550,7 @@ impl () as I where .N = 2 {
// CHECK:STDOUT: %.loc15_26.2: type = converted %bool.make_type, %.loc15_26.1 [template = bool]
// CHECK:STDOUT: %array_type: type = array_type %int_2, bool [template = constants.%array_type]
// CHECK:STDOUT: %self.param: %empty_tuple.type = value_param runtime_param0
// CHECK:STDOUT: %Self.ref: type = name_ref Self, @impl.43.%.loc14_7.2 [template = constants.%empty_tuple.type]
// CHECK:STDOUT: %Self.ref: type = name_ref Self, @impl.44.%.loc14_7.2 [template = constants.%empty_tuple.type]
// CHECK:STDOUT: %self: %empty_tuple.type = bind_name self, %self.param
// CHECK:STDOUT: %return.param: ref %array_type = out_param runtime_param1
// CHECK:STDOUT: %return: ref %array_type = return_slot %return.param
Expand Down

0 comments on commit 6d5e579

Please sign in to comment.