Fixes bug in AVR codegen for llvm backend

This commit is contained in:
Felix "xq" Queißner 2023-01-10 09:39:56 +01:00 committed by Andrew Kelley
parent 537618464a
commit c8a7dc22b1

View File

@ -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,