Skip to content

Commit

Permalink
Fix error on global (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Dec 23, 2024
1 parent 695cc80 commit 228732f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/XLA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,8 @@ function __init__()

# This wasn't properly exported on macos, we'll remove the try once macOS JLL
# has the fix.
try
errptr = cglobal((:ReactantThrowError, MLIR.API.mlir_c), Ptr{Ptr{Cvoid}})
unsafe_store!(errptr, @cfunction(reactant_err, Cvoid, (Cstring,)))
finally
end
errptr = cglobal((:ReactantThrowError, MLIR.API.mlir_c), Ptr{Ptr{Cvoid}})
unsafe_store!(errptr, @cfunction(reactant_err, Cvoid, (Cstring,)))
return nothing
end

Expand Down

0 comments on commit 228732f

Please sign in to comment.