Skip to content

Commit 1a63233

Browse files
committed
Use correct CguReuse variant
1 parent f9d60cf commit 1a63233

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/driver/aot.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,10 @@ pub(crate) fn run_aot(
373373
)
374374
.0
375375
}
376-
CguReuse::PreLto => {
376+
CguReuse::PreLto => unreachable!(),
377+
CguReuse::PostLto => {
377378
OngoingModuleCodegen::Sync(reuse_workproduct_for_cgu(tcx, &*cgu))
378379
}
379-
CguReuse::PostLto => unreachable!(),
380380
}
381381
})
382382
.collect::<Vec<_>>()
@@ -485,5 +485,5 @@ fn determine_cgu_reuse<'tcx>(tcx: TyCtxt<'tcx>, cgu: &CodegenUnit<'tcx>) -> CguR
485485
cgu.name()
486486
);
487487

488-
if tcx.try_mark_green(&dep_node) { CguReuse::PreLto } else { CguReuse::No }
488+
if tcx.try_mark_green(&dep_node) { CguReuse::PostLto } else { CguReuse::No }
489489
}

0 commit comments

Comments
 (0)