mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Fixes bug in AVR codegen for llvm backend
This commit is contained in:
parent
537618464a
commit
c8a7dc22b1
1 changed files with 1 additions and 0 deletions
|
|
@ -4192,6 +4192,7 @@ pub const DeclGen = struct {
|
|||
// verbatim, and the result should test as non-null.
|
||||
const target = dg.module.getTarget();
|
||||
const int = switch (target.cpu.arch.ptrBitWidth()) {
|
||||
16 => llvm_usize.constInt(0xaaaa, .False),
|
||||
32 => llvm_usize.constInt(0xaaaaaaaa, .False),
|
||||
64 => llvm_usize.constInt(0xaaaaaaaa_aaaaaaaa, .False),
|
||||
else => unreachable,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue