stage2: fix C ABI for bool

This fixes a miscompilation compiling debug zig with release stage3 zig.
This commit is contained in:
Jacob Young
2022-10-02 23:13:33 -04:00
committed by Andrew Kelley
parent 9d8cdb855b
commit 38bd2bbcf2

View File

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