about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorArlie Davis <ardavis@microsoft.com>2023-11-21 14:24:23 -0800
committerArlie Davis <ardavis@microsoft.com>2023-11-21 14:24:23 -0800
commit9429d68842a90fec21b5bed7419840bd86baaeab (patch)
tree7ba139c7f8ce2d7f726a4ab30c8e609cb1ff8eac /compiler/rustc_codegen_llvm/src
parentd582f1092b524ed8aff86193928a1c7f871b11cf (diff)
downloadrust-9429d68842a90fec21b5bed7419840bd86baaeab.tar.gz
rust-9429d68842a90fec21b5bed7419840bd86baaeab.zip
convert ehcont-guard to an unstable option
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/context.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs
index 883a4b5f6fb..e6c5085cc0e 100644
--- a/compiler/rustc_codegen_llvm/src/context.rs
+++ b/compiler/rustc_codegen_llvm/src/context.rs
@@ -350,8 +350,9 @@ pub unsafe fn create_module<'ll>(
             1,
         );
     }
+
     // Set module flag to enable Windows EHCont Guard (/guard:ehcont).
-    if sess.opts.cg.ehcont_guard {
+    if sess.opts.unstable_opts.ehcont_guard {
         llvm::LLVMRustAddModuleFlag(
             llmod,
             llvm::LLVMModFlagBehavior::Warning,