Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Compiler/src/abstractinterpretation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3545,7 +3545,7 @@ function merge_override_effects!(interp::AbstractInterpreter, effects::Effects,
# N.B.: We'd like deleted_world here, but we can't add an appropriate edge at this point.
# However, in order to reach here in the first place, ordinary method lookup would have
# had to add an edge and appropriate invalidation trigger.
valid_worlds = WorldRange(m.primary_world, typemax(Int))
valid_worlds = WorldRange(m.primary_world, typemax(UInt))
if sv.world.this in valid_worlds
update_valid_age!(sv, valid_worlds)
else
Expand Down
2 changes: 1 addition & 1 deletion Compiler/src/typeinfer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ function adjust_effects(ipo_effects::Effects, def::Method, world::UInt)
valid_worlds = WorldRange(0, typemax(UInt))
if is_effect_overridden(override, :consistent)
# See note on `typemax(Int)` instead of `deleted_world` in adjust_effects!
override_valid_worlds = WorldRange(def.primary_world, typemax(Int))
override_valid_worlds = WorldRange(def.primary_world, typemax(UInt))
if world in override_valid_worlds
ipo_effects = Effects(ipo_effects; consistent=ALWAYS_TRUE)
valid_worlds = override_valid_worlds
Expand Down