Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit 5a8f448

Browse files
committed
Fix fallout of JuliaLang/julia#26565.
1 parent b1b104c commit 5a8f448

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jit.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,19 @@ function irgen(@nospecialize(f), @nospecialize(tt))
9595
LLVM.parent(llvmf)
9696
end
9797

98-
# the main module should contain a single jlcall_ function definition,
98+
# the main module should contain a single jfptr_ function definition,
9999
# e.g. jlcall_kernel_vadd_62977
100100
definitions = filter(f->!isdeclaration(f), functions(mod))
101101
wrapper = let
102-
fs = collect(filter(f->startswith(LLVM.name(f), "jlcall_"), definitions))
102+
fs = collect(filter(f->startswith(LLVM.name(f), "jfptr_"), definitions))
103103
@assert length(fs) == 1
104104
fs[1]
105105
end
106106

107107
# the jlcall wrapper function should point us to the actual entry-point,
108108
# e.g. julia_kernel_vadd_62984
109109
entry_tag = let
110-
m = match(r"jlcall_(.+)_\d+", LLVM.name(wrapper))
110+
m = match(r"jfptr_(.+)_\d+", LLVM.name(wrapper))
111111
@assert m != nothing
112112
m.captures[1]
113113
end

0 commit comments

Comments
 (0)