]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_gcc/src/allocator.rs
Auto merge of #98162 - nextsilicon:support_lto_embed_bitcode, r=davidtwco
[rust.git] / compiler / rustc_codegen_gcc / src / allocator.rs
index c761e5aabd1071d3c4f22f58d63155e6b0e8a3c2..58efb81e80011eb7e59e6400eca6cd6d1750add8 100644 (file)
@@ -117,7 +117,7 @@ pub(crate) unsafe fn codegen(tcx: TyCtxt<'_>, mods: &mut GccContext, _module_nam
 
     let name = OomStrategy::SYMBOL.to_string();
     let global = context.new_global(None, GlobalKind::Exported, i8, name);
-    let value = tcx.sess.opts.debugging_opts.oom.should_panic();
+    let value = tcx.sess.opts.unstable_opts.oom.should_panic();
     let value = context.new_rvalue_from_int(i8, value as i32);
     global.global_set_initializer_rvalue(value);
 }