Просмотр исходного кода

Remove outdated piece of comment on `SubstInst` (#5869)

The comment on `Subst` explains what is going on with the possible
return values now, and the return type is no longer bool.
Dana Jansens 9 месяцев назад
Родитель
Сommit
3d6395b75a
1 измененных файлов с 0 добавлено и 4 удалено
  1. 0 4
      toolchain/check/subst.h

+ 0 - 4
toolchain/check/subst.h

@@ -77,10 +77,6 @@ class SubstInstCallbacks {
 // Performs substitution into `inst_id` and its operands recursively, using
 // `callbacks` to process each instruction. For each instruction encountered,
 // calls `Subst` to perform substitution on that instruction.
-//
-// If `Subst` returns false, the instruction is decomposed into its operands,
-// which are substituted recursively, and if any of them change then `Rebuild`
-// is used to build a new instruction with the substituted operands.
 auto SubstInst(Context& context, SemIR::InstId inst_id,
                SubstInstCallbacks& callbacks) -> SemIR::InstId;
 auto SubstInst(Context& context, SemIR::TypeInstId inst_id,