Make sure there's no duplicate indices in the dep graph
This commit is contained in:
parent
36fa327623
commit
9a6e8b3807
1 changed files with 5 additions and 1 deletions
|
|
@ -225,7 +225,11 @@ impl SerializedDepGraph {
|
|||
|
||||
let index = node_header.index();
|
||||
|
||||
nodes[index] = node_header.node();
|
||||
let node = &mut nodes[index];
|
||||
// Make sure there's no duplicate indices in the dep graph.
|
||||
assert!(node_header.node().kind != D::DEP_KIND_NULL && node.kind == D::DEP_KIND_NULL);
|
||||
*node = node_header.node();
|
||||
|
||||
fingerprints[index] = node_header.fingerprint();
|
||||
|
||||
// If the length of this node's edge list is small, the length is stored in the header.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue