We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9d60cf commit 1a63233Copy full SHA for 1a63233
src/driver/aot.rs
@@ -373,10 +373,10 @@ pub(crate) fn run_aot(
373
)
374
.0
375
}
376
- CguReuse::PreLto => {
+ CguReuse::PreLto => unreachable!(),
377
+ CguReuse::PostLto => {
378
OngoingModuleCodegen::Sync(reuse_workproduct_for_cgu(tcx, &*cgu))
379
- CguReuse::PostLto => unreachable!(),
380
381
})
382
.collect::<Vec<_>>()
@@ -485,5 +485,5 @@ fn determine_cgu_reuse<'tcx>(tcx: TyCtxt<'tcx>, cgu: &CodegenUnit<'tcx>) -> CguR
485
cgu.name()
486
);
487
488
- if tcx.try_mark_green(&dep_node) { CguReuse::PreLto } else { CguReuse::No }
+ if tcx.try_mark_green(&dep_node) { CguReuse::PostLto } else { CguReuse::No }
489
0 commit comments