mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
Fixes bug in AVR codegen for llvm backend
This commit is contained in:
parent
537618464a
commit
c8a7dc22b1
@ -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…
x
Reference in New Issue
Block a user