Skip to content

Commit dec59fa

Browse files
committed
Correct nothrow modeling of get_binding_type
As pointed out in #56299 (comment), although the bug predates that PR.
1 parent 0249feb commit dec59fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/compiler/tfuncs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2501,7 +2501,7 @@ function builtin_effects(𝕃::AbstractLattice, @nospecialize(f::Builtin), argty
25012501
elseif f === Core.get_binding_type
25022502
length(argtypes) == 2 || return EFFECTS_THROWS
25032503
# Modeled more precisely in abstract_eval_get_binding_type
2504-
return Effects(EFFECTS_TOTAL; effect_free=ALWAYS_FALSE)
2504+
return Effects(EFFECTS_TOTAL; effect_free=ALWAYS_FALSE, nothrow=get_binding_type_nothrow(𝕃, argtypes[1], argtypes[2]))
25052505
elseif f === compilerbarrier
25062506
length(argtypes) == 2 || return Effects(EFFECTS_THROWS; consistent=ALWAYS_FALSE)
25072507
setting = argtypes[1]

0 commit comments

Comments
 (0)