Skip to content

Commit 98762d0

Browse files
committed
add world as an argument to julia_activity_rule
1 parent 1c582f8 commit 98762d0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/compiler.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ end
629629
name = meth.name
630630
jlmod = meth.module
631631

632-
julia_activity_rule(llvmfn)
632+
julia_activity_rule(llvmfn, world)
633633
if has_custom_rule
634634
handleCustom(
635635
state,

src/rules/activityrules.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
function julia_activity_rule(f::LLVM.Function)
2+
function julia_activity_rule(f::LLVM.Function, world)
33
if startswith(LLVM.name(f), "japi3") || startswith(LLVM.name(f), "japi1")
44
return
55
end
@@ -30,8 +30,6 @@ function julia_activity_rule(f::LLVM.Function)
3030
if mi.specTypes.parameters[end] === Vararg{Any}
3131
return
3232
end
33-
world = enzyme_extract_world(f)
34-
# TODO: Access to gutils
3533

3634
# TODO fix the attributor inlining such that this can assert always true
3735
if expectLen != length(parameters(f))

0 commit comments

Comments
 (0)