no-stack-arg-probe only for UEFI

This commit is contained in:
Andrew Kelley 2019-09-13 14:46:22 -04:00
parent 2b698888ce
commit 8223aca09b
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -517,7 +517,7 @@ static LLVMValueRef make_fn_llvm_value(CodeGen *g, ZigFn *fn) {
}
if (g->have_stack_probing && !fn->def_scope->safety_off) {
addLLVMFnAttrStr(llvm_fn, "probe-stack", "__zig_probe_stack");
} else {
} else if (g->zig_target->os == OsUefi) {
addLLVMFnAttrStr(llvm_fn, "no-stack-arg-probe", "");
}
} else {