Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Sep 23, 2021
1 parent 4659d48 commit 89544c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/JET.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ import .CC:
tmerge,
switchtupleunion,
argtypes_to_type,
argtype_to_function,
singleton_type,
argtype_by_index,
argtype_tail,
_methods_by_ftype,
Expand Down
2 changes: 1 addition & 1 deletion src/abstractinterpret/typeinfer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ See also: <https://github.com/aviatesk/JET.jl/issues/114>
interpretation routine.
"""
function analyze_task_parallel_code!(analyzer::AbstractAnalyzer, argtypes::Vector{Any}, sv::InferenceState)
f = argtype_to_function(argtypes[1])
f = singleton_type(argtypes[1])

# TODO we should analyze a closure wrapped in a `Task` only when it's `schedule`d
# But the `Task` construction may not happen in the same frame where it's `schedule`d
Expand Down

0 comments on commit 89544c2

Please sign in to comment.