work around stage1 invalid LLVM IR

This commit is contained in:
Andrew Kelley 2020-09-04 12:42:17 -07:00
parent 503ba7b27c
commit 71687b30a2

View File

@ -725,8 +725,10 @@ pub fn buildOutputType(
}
}
if (want_sanitize_c == true and build_mode == .ReleaseFast) {
build_mode = .ReleaseSafe;
if (want_sanitize_c) |wsc| {
if (wsc and build_mode == .ReleaseFast) {
build_mode = .ReleaseSafe;
}
}
if (only_pp_or_asm) {