Skip to content

Commit

Permalink
Work around julia GC bug (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Oct 6, 2022
1 parent 844ef4a commit d4336ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3658,10 +3658,11 @@ function julia_allocator(B, LLVMType, Count, AlignedSize, IsDefault, ZI)
end

# Check if Julia version has https://github.com/JuliaLang/julia/pull/46914
# and also https://github.com/JuliaLang/julia/pull/47076
@static if VERSION >= v"1.9.0-DEV.1439"
needs_dynamic_size_workaround = false
needs_dynamic_size_workaround = !isa(Size, LLVM.ConstantInt) || convert(Int64, Size) != 1
else
needs_dynamic_size_workaround = !isa(Size, LLVM.ConstantInt)
needs_dynamic_size_workaround = !isa(Size, LLVM.ConstantInt) || convert(Int64, Size) != 1
end

T_size_t = convert(LLVM.LLVMType, Int; ctx)
Expand Down

0 comments on commit d4336ae

Please sign in to comment.