stage2: fix C ABI for bool
This fixes a miscompilation compiling debug zig with release stage3 zig.
This commit is contained in:
committed by
Andrew Kelley
parent
9d8cdb855b
commit
38bd2bbcf2
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user