]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_gcc/src/lib.rs
Rollup merge of #103929 - BlackHoleFox:apple-targets-cleanup, r=petrochenkov
[rust.git] / compiler / rustc_codegen_gcc / src / lib.rs
index accd02ab0026991fa389acd7e6e0c97ab748948a..dd0daf2c38b109c9775edf7ca5d70056b9e4c699 100644 (file)
@@ -153,11 +153,11 @@ fn target_features(&self, sess: &Session, allow_unstable: bool) -> Vec<Symbol> {
 }
 
 impl ExtraBackendMethods for GccCodegenBackend {
-    fn codegen_allocator<'tcx>(&self, tcx: TyCtxt<'tcx>, module_name: &str, kind: AllocatorKind, has_alloc_error_handler: bool) -> Self::Module {
+    fn codegen_allocator<'tcx>(&self, tcx: TyCtxt<'tcx>, module_name: &str, kind: AllocatorKind, alloc_error_handler_kind: AllocatorKind) -> Self::Module {
         let mut mods = GccContext {
             context: Context::default(),
         };
-        unsafe { allocator::codegen(tcx, &mut mods, module_name, kind, has_alloc_error_handler); }
+        unsafe { allocator::codegen(tcx, &mut mods, module_name, kind, alloc_error_handler_kind); }
         mods
     }