Skip to content

Commit 1622b6e

Browse files
committed
simplify condition in start_executing_work()
1 parent 9523c89 commit 1622b6e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/librustc_codegen_ssa/back/write.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1244,11 +1244,11 @@ fn start_executing_work<B: ExtraBackendMethods>(
12441244
while !codegen_done
12451245
|| running > 0
12461246
|| (!codegen_aborted
1247-
&& (!work_items.is_empty()
1248-
|| !needs_fat_lto.is_empty()
1249-
|| !needs_thin_lto.is_empty()
1250-
|| !lto_import_only_modules.is_empty()
1251-
|| main_thread_worker_state != MainThreadWorkerState::Idle))
1247+
&& !(work_items.is_empty()
1248+
&& needs_fat_lto.is_empty()
1249+
&& needs_thin_lto.is_empty()
1250+
&& lto_import_only_modules.is_empty()
1251+
&& main_thread_worker_state == MainThreadWorkerState::Idle))
12521252
{
12531253
// While there are still CGUs to be codegened, the coordinator has
12541254
// to decide how to utilize the compiler processes implicit Token:

0 commit comments

Comments
 (0)