Skip to content

Commit 90fdd2e

Browse files
authored
Avoid undefref error in validation.jl (#1523)
1 parent 23dd259 commit 90fdd2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/validation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ function check_ir!(job, errors, imported, inst::LLVM.CallInst, calls)
426426
flib = Base.unsafe_pointer_to_objref(ld)
427427
end
428428
end
429-
if isa(flib, GlobalRef)
429+
if isa(flib, GlobalRef) && isdefined(flib.mod, flib.name)
430430
flib = getfield(flib.mod, flib.name)
431431
end
432432

0 commit comments

Comments
 (0)