Use a QueryContext for try_mark_green.
This commit is contained in:
parent
fe8d11bb99
commit
702676bfff
1 changed files with 1 additions and 5 deletions
|
@ -465,9 +465,5 @@ fn determine_cgu_reuse<'tcx>(tcx: TyCtxt<'tcx>, cgu: &CodegenUnit<'tcx>) -> CguR
|
||||||
cgu.name()
|
cgu.name()
|
||||||
);
|
);
|
||||||
|
|
||||||
if tcx.dep_graph.try_mark_green(tcx, &dep_node).is_some() {
|
if tcx.try_mark_green(&dep_node) { CguReuse::PreLto } else { CguReuse::No }
|
||||||
CguReuse::PreLto
|
|
||||||
} else {
|
|
||||||
CguReuse::No
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue