File tree Expand file tree Collapse file tree
kmir/src/kmir/kdist/mir-semantics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -219,8 +219,9 @@ NB that a stack height of `0` cannot occur here, because the compiler prevents l
219219If the local ` _0 ` does not have a value (i.e., it remained uninitialised), the function returns unit and writing the value is skipped.
220220
221221``` k
222- // `place(local(-1), .ProjectionElems)` is the sentinel destination for calls whose
223- // return should not be written back. Without this rule, the return path would fall
222+ // `place(local(-1), .ProjectionElems)` is the sentinel destination indicating the
223+ // callee is not expected to return a value (e.g. `main`, top-level framework calls,
224+ // or `drop_in_place` functions). Without this rule, the return path would fall
224225 // through to `#setLocalValue`, which only accepts real local indices and would get
225226 // stuck on `local(-1)`.
226227 rule [termReturnIgnored]: <k> #execTerminator(terminator(terminatorKindReturn, _SPAN)) ~> _
You can’t perform that action at this time.
0 commit comments