Skip to content

Commit

Permalink
workaround i1 issue in llvm.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Dec 6, 2024
1 parent 4f160a0 commit cfe066b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/absint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,11 @@ end
end

function should_recurse(@nospecialize(typ2), @nospecialize(arg_t::LLVM.LLVMType), byref::GPUCompiler.ArgumentCC, dl::LLVM.DataLayout)::Bool
sz = sizeof(dl, arg_t)
sz = if arg_t == LLVM.IntType(1)
1
else
sizeof(dl, arg_t)
end
if byref != GPUCompiler.BITS_VALUE
if sz != sizeof(Int)
throw(AssertionError("non bits type $byref of $typ2 has size $sz != sizeof(Int) from arg type $arg_t"))
Expand Down

0 comments on commit cfe066b

Please sign in to comment.