stage2: LLVM backend: fix const packed structs

When doing LLVM const bit shifting we must make sure the integer bit
sizes are wide enough or else LLVM gives us a poison result.
This commit is contained in:
Andrew Kelley
2021-12-27 16:59:26 -07:00
parent 3abe464b06
commit 886df772f0
5 changed files with 55 additions and 62 deletions

View File

@@ -21,7 +21,7 @@ test {
_ = @import("behavior/usingnamespace.zig");
// Tests that pass for stage1, stage2 and the C backend, but not for the wasm backend
if (!builtin.zig_is_stage2 or (builtin.zig_is_stage2 and builtin.stage2_arch != .wasm32)) {
if (!builtin.zig_is_stage2 or builtin.stage2_arch != .wasm32) {
_ = @import("behavior/align.zig");
_ = @import("behavior/bool.zig");
_ = @import("behavior/bugs/704.zig");