diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2021-04-05 15:37:11 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-05-08 10:58:08 +0200 |
| commit | c2b15a6b6416e01378547fa70b343a3b11febf41 (patch) | |
| tree | 8b5f8e9961b4e898c217af56ad148e577bd072ad /compiler/rustc_codegen_ssa/src/back | |
| parent | 5519cbfe334182f57047ea00368f3fd0b9ca0d1c (diff) | |
| download | rust-c2b15a6b6416e01378547fa70b343a3b11febf41.tar.gz rust-c2b15a6b6416e01378547fa70b343a3b11febf41.zip | |
Support -C passes in NewPM
And report an error if parsing the additional pass pipeline fails. Threading through the error accounts for most of the changes here.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/lto.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/lto.rs b/compiler/rustc_codegen_ssa/src/back/lto.rs index 0ff05229466..d6ae689f254 100644 --- a/compiler/rustc_codegen_ssa/src/back/lto.rs +++ b/compiler/rustc_codegen_ssa/src/back/lto.rs @@ -72,7 +72,7 @@ impl<B: WriteBackendMethods> LtoModuleCodegen<B> { let module = module.take().unwrap(); { let config = cgcx.config(module.kind); - B::run_lto_pass_manager(cgcx, &module, config, false); + B::run_lto_pass_manager(cgcx, &module, config, false)?; } Ok(module) } |
