diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-01-18 23:53:42 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-02-19 17:51:56 +0100 |
| commit | b27266fdb20dd6f6d58428bcf15771dbaeb18d01 (patch) | |
| tree | ffcf08b18f51c71271e486e0a06cdf14f7314ea6 /compiler/rustc_codegen_ssa | |
| parent | 3bd14c7bbee10aaff2466014ae1c2455010dfafe (diff) | |
| download | rust-b27266fdb20dd6f6d58428bcf15771dbaeb18d01.tar.gz rust-b27266fdb20dd6f6d58428bcf15771dbaeb18d01.zip | |
Use a QueryContext for try_mark_green.
Diffstat (limited to 'compiler/rustc_codegen_ssa')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/base.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/base.rs b/compiler/rustc_codegen_ssa/src/base.rs index 658ad3c375d..08e31c3b37f 100644 --- a/compiler/rustc_codegen_ssa/src/base.rs +++ b/compiler/rustc_codegen_ssa/src/base.rs @@ -867,7 +867,7 @@ fn determine_cgu_reuse<'tcx>(tcx: TyCtxt<'tcx>, cgu: &CodegenUnit<'tcx>) -> CguR cgu.name() ); - if tcx.dep_graph.try_mark_green(tcx, &dep_node).is_some() { + if tcx.try_mark_green(&dep_node) { // We can re-use either the pre- or the post-thinlto state. If no LTO is // being performed then we can use post-LTO artifacts, otherwise we must // reuse pre-LTO artifacts |
