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_cranelift/src | |
| parent | 3bd14c7bbee10aaff2466014ae1c2455010dfafe (diff) | |
| download | rust-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.rs | 6 |
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 } } |
