Skip to content

Commit 702676b

Browse files
committed
Use a QueryContext for try_mark_green.
1 parent fe8d11b commit 702676b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/driver/aot.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,5 @@ fn determine_cgu_reuse<'tcx>(tcx: TyCtxt<'tcx>, cgu: &CodegenUnit<'tcx>) -> CguR
465465
cgu.name()
466466
);
467467

468-
if tcx.dep_graph.try_mark_green(tcx, &dep_node).is_some() {
469-
CguReuse::PreLto
470-
} else {
471-
CguReuse::No
472-
}
468+
if tcx.try_mark_green(&dep_node) { CguReuse::PreLto } else { CguReuse::No }
473469
}

0 commit comments

Comments
 (0)