Commit 71687b30a2

Andrew Kelley <andrew@ziglang.org>
2020-09-04 21:42:17
work around stage1 invalid LLVM IR
1 parent 503ba7b
Changed files (1)
src-self-hosted
src-self-hosted/main.zig
@@ -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) {