From 38bd2bbcf27a34f232dd540534c3fb8063a0e24a Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Sun, 2 Oct 2022 23:13:33 -0400 Subject: stage2: fix C ABI for bool This fixes a miscompilation compiling debug zig with release stage3 zig. --- src/codegen/llvm.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/codegen') diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index 1b793265da..3b89c99fb9 100644 --- a/src/codegen/llvm.zig +++ b/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, }; -- cgit v1.2.3