about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-01-18 23:53:42 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2021-02-19 17:51:56 +0100
commitb27266fdb20dd6f6d58428bcf15771dbaeb18d01 (patch)
treeffcf08b18f51c71271e486e0a06cdf14f7314ea6 /compiler/rustc_codegen_cranelift/src
parent3bd14c7bbee10aaff2466014ae1c2455010dfafe (diff)
downloadrust-b27266fdb20dd6f6d58428bcf15771dbaeb18d01.tar.gz
rust-b27266fdb20dd6f6d58428bcf15771dbaeb18d01.zip
Use a QueryContext for try_mark_green.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
-rw-r--r--compiler/rustc_codegen_cranelift/src/driver/aot.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/driver/aot.rs b/compiler/rustc_codegen_cranelift/src/driver/aot.rs
index c9e503a43b9..39781e2482a 100644
--- a/compiler/rustc_codegen_cranelift/src/driver/aot.rs
+++ b/compiler/rustc_codegen_cranelift/src/driver/aot.rs
@@ -465,9 +465,5 @@ 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() {
-        CguReuse::PreLto
-    } else {
-        CguReuse::No
-    }
+    if tcx.try_mark_green(&dep_node) { CguReuse::PreLto } else { CguReuse::No }
 }