From c0e035f2f88e4328b4b30424e6922657fcc997ea Mon Sep 17 00:00:00 2001 From: z78078 Date: Mon, 4 Jul 2022 16:35:17 +0800 Subject: [PATCH] remove the style changes in nac3core/src/codegen/mod.rs --- nac3core/src/codegen/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nac3core/src/codegen/mod.rs b/nac3core/src/codegen/mod.rs index a9c9dc33..a0cbda1b 100644 --- a/nac3core/src/codegen/mod.rs +++ b/nac3core/src/codegen/mod.rs @@ -150,12 +150,10 @@ impl WorkerRegistry { }); let mut handles = Vec::new(); - for mut generator in generators.into_iter() { let registry = registry.clone(); let registry2 = registry.clone(); let f = f.clone(); - let handle = thread::spawn(move || { registry.worker_thread(generator.as_mut(), f); }); @@ -228,7 +226,6 @@ impl WorkerRegistry { let passes = PassManager::create(&module); - // HACK: This critical section is a work-around for issue // https://git.m-labs.hk/M-Labs/nac3/issues/275 { @@ -259,6 +256,7 @@ impl WorkerRegistry { if !errors.is_empty() { panic!("Codegen error: {}", errors.into_iter().sorted().join("\n----------\n")); } + let result = module.verify(); if let Err(err) = result { println!("{}", module.print_to_string().to_str().unwrap());