about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/back
diff options
context:
space:
mode:
authorIrina Popa <irinagpopa@gmail.com>2018-07-12 16:24:09 +0300
committerIrina Popa <irinagpopa@gmail.com>2018-07-30 20:10:29 +0300
commite9546601a1eb614a50eea2caf41b6fd6905c4d15 (patch)
tree967e6f6070e2508211251e4a300e743a91851150 /src/librustc_codegen_llvm/back
parent2f73cef5a3bff0da510bfc35f88bb42009af6035 (diff)
rustc_codegen_llvm: use safe references for PassManagerBuilder.
Diffstat (limited to 'src/librustc_codegen_llvm/back')
-rw-r--r--src/librustc_codegen_llvm/back/write.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/back/write.rs b/src/librustc_codegen_llvm/back/write.rs
index ce51a3572d8..c54ce29b462 100644
--- a/src/librustc_codegen_llvm/back/write.rs
+++ b/src/librustc_codegen_llvm/back/write.rs
@@ -2051,7 +2051,7 @@ pub unsafe fn with_llvm_pmb(llmod: &llvm::Module,
                             config: &ModuleConfig,
                             opt_level: llvm::CodeGenOptLevel,
                             prepare_for_thin_lto: bool,
-                            f: &mut dyn FnMut(llvm::PassManagerBuilderRef)) {
+                            f: &mut dyn FnMut(&llvm::PassManagerBuilder)) {
     use std::ptr;
 
     // Create the PassManagerBuilder for LLVM. We configure it with