Skip to content

Commit

Permalink
Add a nospecialize
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Jan 6, 2024
1 parent dcee3ec commit 0eb59f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lowered.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function categorize_stmt(@nospecialize(stmt))
return ismeth, haseval, isinclude, isnamespace, istoplevel
end
# Check for thunks that define functions (fixes #792)
function defines_function(ci)
function defines_function(@nospecialize(ci))
isa(ci, CodeInfo) || return false
if length(ci.code) == 1
stmt = ci.code[1]
Expand Down

0 comments on commit 0eb59f3

Please sign in to comment.