diff options
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/context.rs | 3 |
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, |
