about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-07-14 14:27:57 -0400
committerMichael Goulet <michael@errs.io>2024-07-16 00:02:44 -0400
commit28503d69ac204ff208d115aea30dc09d6fca8728 (patch)
tree10c775d65355d7a0a32200978a90fbbc20ad5ca4 /compiler/rustc_codegen_ssa/src
parent71eb49c318c3e7c25a6306414298d78accd164df (diff)
downloadrust-28503d69ac204ff208d115aea30dc09d6fca8728.tar.gz
rust-28503d69ac204ff208d115aea30dc09d6fca8728.zip
Fix unsafe_op_in_unsafe_fn in compiler
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/lto.rs2
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 cb6244050df..5291cad148e 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> {
                 B::optimize_fat(cgcx, &mut module)?;
                 Ok(module)
             }
-            LtoModuleCodegen::Thin(thin) => B::optimize_thin(cgcx, thin),
+            LtoModuleCodegen::Thin(thin) => unsafe { B::optimize_thin(cgcx, thin) },
         }
     }