about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver/aot.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/driver/aot.rs b/src/driver/aot.rs
index 224756bc6c7..b8b325be71b 100644
--- a/src/driver/aot.rs
+++ b/src/driver/aot.rs
@@ -373,10 +373,10 @@ pub(crate) fn run_aot(
                             )
                             .0
                     }
-                    CguReuse::PreLto => {
+                    CguReuse::PreLto => unreachable!(),
+                    CguReuse::PostLto => {
                         OngoingModuleCodegen::Sync(reuse_workproduct_for_cgu(tcx, &*cgu))
                     }
-                    CguReuse::PostLto => unreachable!(),
                 }
             })
             .collect::<Vec<_>>()
@@ -485,5 +485,5 @@ fn determine_cgu_reuse<'tcx>(tcx: TyCtxt<'tcx>, cgu: &CodegenUnit<'tcx>) -> CguR
         cgu.name()
     );
 
-    if tcx.try_mark_green(&dep_node) { CguReuse::PreLto } else { CguReuse::No }
+    if tcx.try_mark_green(&dep_node) { CguReuse::PostLto } else { CguReuse::No }
 }