convert ehcont-guard to an unstable option

This commit is contained in:
Arlie Davis 2023-11-21 14:24:23 -08:00
parent d582f1092b
commit 9429d68842
4 changed files with 6 additions and 5 deletions

View file

@ -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,