diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-11-16 13:39:56 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-11-16 15:08:18 +0200 |
| commit | d1410ada92bfc80f4e7020336e182670084acd0e (patch) | |
| tree | 415da9e0a10162e91a854e00b50621ea8bedda30 /src/librustc_codegen_llvm/back | |
| parent | 47c84c4234a6e3ee24888bd94daeec13df7dd20d (diff) | |
| download | rust-d1410ada92bfc80f4e7020336e182670084acd0e.tar.gz rust-d1410ada92bfc80f4e7020336e182670084acd0e.zip | |
[eddyb] rustc_codegen_ssa: avoid a `Clone` bound on `TargetMachine`.
Diffstat (limited to 'src/librustc_codegen_llvm/back')
| -rw-r--r-- | src/librustc_codegen_llvm/back/lto.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/back/lto.rs b/src/librustc_codegen_llvm/back/lto.rs index a5f07e46e11..2fc8deeec8a 100644 --- a/src/librustc_codegen_llvm/back/lto.rs +++ b/src/librustc_codegen_llvm/back/lto.rs @@ -649,7 +649,7 @@ pub unsafe fn optimize_thin_module( timeline: &mut Timeline ) -> Result<ModuleCodegen<ModuleLlvm>, FatalError> { let diag_handler = cgcx.create_diag_handler(); - let tm = (cgcx.tm_factory)().map_err(|e| { + let tm = (cgcx.tm_factory.0)().map_err(|e| { write::llvm_err(&diag_handler, &e) })?; |
