1
Fork 0

Make the fast path faster.

This commit is contained in:
Camille GILLOT 2021-05-12 08:49:49 +02:00
parent 91444af87a
commit eb82187b13
2 changed files with 15 additions and 14 deletions

View file

@ -792,7 +792,7 @@ impl<K: DepKind> DepGraph<K> {
}
}
fn next_virtual_depnode_index(&self) -> DepNodeIndex {
pub(crate) fn next_virtual_depnode_index(&self) -> DepNodeIndex {
let index = self.virtual_dep_node_index.fetch_add(1, Relaxed);
DepNodeIndex::from_u32(index)
}