Skip to content

Commit e99d5cc

Browse files
vchuravygiordano
authored andcommitted
attempt active_reg fix on 1.12
1 parent 48c5973 commit e99d5cc

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
@@ -451,14 +451,15 @@ Base.@nospecializeinfer @inline function active_reg(@nospecialize(ST::Type), wor
451451
return result
452452
end
453453

454-
function active_reg_nothrow_generator(world::UInt, source::LineNumberNode, T, self, _)
454+
function active_reg_nothrow_generator(world::UInt, source::Union{Method, LineNumberNode}, T, self, _)
455455
@nospecialize
456456
result = active_reg(T, world)
457457

458458
# create an empty CodeInfo to return the result
459459
ci = ccall(:jl_new_code_info_uninit, Ref{Core.CodeInfo}, ())
460460

461461
@static if isdefined(Core, :DebugInfo)
462+
# TODO: Add proper debug info
462463
ci.debuginfo = Core.DebugInfo(:none)
463464
else
464465
ci.codelocs = Int32[]

0 commit comments

Comments
 (0)