Skip to content

Commit

Permalink
Avoid undefref error in validation.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jun 7, 2024
1 parent 23dd259 commit 6bc50c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/validation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ function check_ir!(job, errors, imported, inst::LLVM.CallInst, calls)
flib = Base.unsafe_pointer_to_objref(ld)
end
end
if isa(flib, GlobalRef)
if isa(flib, GlobalRef) && isdefined(flib.mod, flib.name)
flib = getfield(flib.mod, flib.name)
end

Expand Down

0 comments on commit 6bc50c7

Please sign in to comment.