about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-10-16 22:31:48 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-10-20 18:29:18 +0200
commitaa404c24ddafea428cb86de8f914b129be4a726b (patch)
tree0e3dda9def1c7c8ec7655dce81201f51f0a6e818 /compiler/rustc_codegen_llvm/src
parente53404cca68e8220a57339cb3e213fd0d8e99a5f (diff)
downloadrust-aa404c24ddafea428cb86de8f914b129be4a726b.tar.gz
rust-aa404c24ddafea428cb86de8f914b129be4a726b.zip
Make hash_result an Option.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/base.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/base.rs b/compiler/rustc_codegen_llvm/src/base.rs
index 3026c2fa030..8766caef6e3 100644
--- a/compiler/rustc_codegen_llvm/src/base.rs
+++ b/compiler/rustc_codegen_llvm/src/base.rs
@@ -113,8 +113,13 @@ pub fn compile_codegen_unit(
     let start_time = Instant::now();
 
     let dep_node = tcx.codegen_unit(cgu_name).codegen_dep_node(tcx);
-    let (module, _) =
-        tcx.dep_graph.with_task(dep_node, tcx, cgu_name, module_codegen, dep_graph::hash_result);
+    let (module, _) = tcx.dep_graph.with_task(
+        dep_node,
+        tcx,
+        cgu_name,
+        module_codegen,
+        Some(dep_graph::hash_result),
+    );
     let time_to_codegen = start_time.elapsed();
 
     // We assume that the cost to run LLVM on a CGU is proportional to