diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-08-23 16:06:01 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-08-23 16:32:20 +0000 |
| commit | 1a6323313b7b33afe7aafa93a689e43a2c4ac768 (patch) | |
| tree | 74b704bd195062d2890fa84af03bdd316dacbe64 | |
| parent | f9d60cf55154272656bb2bdba8c4fd419ec814e6 (diff) | |
| download | rust-1a6323313b7b33afe7aafa93a689e43a2c4ac768.tar.gz rust-1a6323313b7b33afe7aafa93a689e43a2c4ac768.zip | |
Use correct CguReuse variant
| -rw-r--r-- | src/driver/aot.rs | 6 |
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 } } |
