Skip to content

Commit

Permalink
Reset row background for each block
Browse files Browse the repository at this point in the history
Now the first row of each basic block is always light instead of
changing seemingly at random.
  • Loading branch information
ecstatic-morse committed Oct 1, 2019
1 parent 702b45e commit 1611238
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_mir/dataflow/generic/graphviz.rs
Expand Up @@ -211,6 +211,7 @@ where
)?;

// C: Entry state
self.bg = Background::Light;
self.results.seek_to_block_start(block);
self.write_row_with_curr_state(w, "", "(on entry)")?;
self.prev_state.overwrite(self.results.get());
Expand Down

0 comments on commit 1611238

Please sign in to comment.