1
Fork 0

Use correct CguReuse variant

This commit is contained in:
bjorn3 2022-08-23 16:06:01 +00:00
parent f9d60cf551
commit 1a6323313b

View file

@ -373,10 +373,10 @@ pub(crate) fn run_aot(
) )
.0 .0
} }
CguReuse::PreLto => { CguReuse::PreLto => unreachable!(),
CguReuse::PostLto => {
OngoingModuleCodegen::Sync(reuse_workproduct_for_cgu(tcx, &*cgu)) OngoingModuleCodegen::Sync(reuse_workproduct_for_cgu(tcx, &*cgu))
} }
CguReuse::PostLto => unreachable!(),
} }
}) })
.collect::<Vec<_>>() .collect::<Vec<_>>()
@ -485,5 +485,5 @@ fn determine_cgu_reuse<'tcx>(tcx: TyCtxt<'tcx>, cgu: &CodegenUnit<'tcx>) -> CguR
cgu.name() 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 }
} }