Cleanup liveness comment.

This commit is contained in:
Mazdak Farrokhzad 2019-06-26 14:51:01 +02:00
parent b9e7e3175a
commit b32beb88cd
1 changed files with 6 additions and 13 deletions

View File

@ -1346,22 +1346,15 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
succ: LiveNode
) -> LiveNode {
/*
FIXME: clean up this description.
We model control flow like this:
(cond) <--+
| |
v |
+-- (expr) |
| | |
| v |
| (body) ---+
|
|
v
(succ)
(expr) <-+
| |
v |
(body) --+
Note that a `continue` expression targeting the `loop` will have a successor of `expr`.
Meanwhile, a `break` expression will have a successor of `succ`.
*/
// first iteration: