Commit 38bd2bbcf2

Jacob Young <jacobly0@users.noreply.github.com>
2022-10-03 05:13:33
stage2: fix C ABI for bool
This fixes a miscompilation compiling debug zig with release stage3 zig.
1 parent 9d8cdb8
Changed files (1)
src
codegen
src/codegen/llvm.zig
@@ -10277,6 +10277,7 @@ fn ccAbiPromoteInt(
         else => {},
     }
     const int_info = switch (ty.zigTypeTag()) {
+        .Bool => Type.@"u1".intInfo(target),
         .Int, .Enum, .ErrorSet => ty.intInfo(target),
         else => return null,
     };