Avoid creating anonymous nodes with zero or one dependency.

This commit is contained in:
Camille GILLOT 2021-05-15 17:23:16 +02:00
parent 7f9ab0300c
commit 3a6d5c2beb
2 changed files with 49 additions and 26 deletions

View file

@ -229,6 +229,7 @@ pub fn build_dep_graph(
}
Some(DepGraph::new(
&sess.prof,
prev_graph,
prev_work_products,
encoder,