authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2022-10-02 23:13:33-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-10-03 22:41:07-04:00
log38bd2bbcf27a34f232dd540534c3fb8063a0e24a
treecf4a9f99eb40c9dcf63291e3f5f364c7fe8d671f
parent9d8cdb855bd20f20d00618e8bc78dcf237232537

stage2: fix C ABI for bool

This fixes a miscompilation compiling debug zig with release stage3 zig.

1 files changed, 1 insertions(+), 0 deletions(-)

src/codegen/llvm.zig+1
...@@ -10277,6 +10277,7 @@ fn ccAbiPromoteInt(...@@ -10277,6 +10277,7 @@ fn ccAbiPromoteInt(
10277 else => {},10277 else => {},
10278 }10278 }
10279 const int_info = switch (ty.zigTypeTag()) {10279 const int_info = switch (ty.zigTypeTag()) {
10280 .Bool => Type.@"u1".intInfo(target),
10280 .Int, .Enum, .ErrorSet => ty.intInfo(target),10281 .Int, .Enum, .ErrorSet => ty.intInfo(target),
10281 else => return null,10282 else => return null,
10282 };10283 };