Skip to content

Commit bdd4d2b

Browse files
committed
attempt active_reg fix on 1.12
1 parent 2212151 commit bdd4d2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/analyses/activity.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,14 +447,15 @@ Base.@nospecializeinfer @inline function active_reg(@nospecialize(ST::Type), wor
447447
return result
448448
end
449449

450-
function active_reg_nothrow_generator(world::UInt, source::LineNumberNode, T, self, _)
450+
function active_reg_nothrow_generator(world::UInt, source::Union{Method, LineNumberNode}, T, self, _)
451451
@nospecialize
452452
result = active_reg(T, world)
453453

454454
# create an empty CodeInfo to return the result
455455
ci = ccall(:jl_new_code_info_uninit, Ref{Core.CodeInfo}, ())
456456

457457
@static if isdefined(Core, :DebugInfo)
458+
# TODO: Add proper debug info
458459
ci.debuginfo = Core.DebugInfo(:none)
459460
else
460461
ci.codelocs = Int32[]

0 commit comments

Comments
 (0)