mirror of
https://github.com/ziglang/zig.git
synced 2026-01-09 17:05:16 +00:00
Fixes bug in AVR codegen for llvm backend
This commit is contained in:
parent
1f8f79cd53
commit
f7ade7e63b
@ -4213,6 +4213,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