Skip to content

Commit

Permalink
minor followup to #57009, improve typing of GlobalAccessInfo
Browse files Browse the repository at this point in the history
`bpart`s there are all known to be `Core.BindingPartition` and never be
`nothing`.
  • Loading branch information
aviatesk committed Jan 28, 2025
1 parent eff8ba4 commit bde4583
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Compiler/src/abstractinterpretation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3560,7 +3560,7 @@ function global_assignment_rt_exct(interp::AbstractInterpreter, sv::AbsIntState,
Pair{Any,Any}(newty, Union{ErrorException, TypeError}), nothing)
end
partition = abstract_eval_binding_partition!(interp, g, sv)
return Pair{Pair{Any,Any}, Union{Core.BindingPartition, Nothing}}(
return Pair{Pair{Any,Any}, Core.BindingPartition}(
global_assignment_binding_rt_exct(interp, partition, newty),
partition)
end
Expand Down
1 change: 0 additions & 1 deletion Compiler/src/stmtinfo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,6 @@ perform such accesses.
struct GlobalAccessInfo <: CallInfo
bpart::Core.BindingPartition
end
GlobalAccessInfo(::Nothing) = NoCallInfo()
add_edges_impl(edges::Vector{Any}, info::GlobalAccessInfo) =
push!(edges, info.bpart)

Expand Down

0 comments on commit bde4583

Please sign in to comment.