Skip to content

Commit

Permalink
irinterp: Allow Expr(:boundscheck) in statement position (JuliaLang#5…
Browse files Browse the repository at this point in the history
…1688)

We didn't used to see these because :boundscheck in statement position
would always taint consistency, but with the recent consistency
refinement this is reachable, so it needs to be in the list.
  • Loading branch information
Keno committed Oct 13, 2023
1 parent 8a847d5 commit 3df63a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/compiler/ssair/irinterp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function reprocess_instruction!(interp::AbstractInterpreter, idx::Int, bb::Union
rt = nothing
if isa(stmt, Expr)
head = stmt.head
if head === :call || head === :foreigncall || head === :new || head === :splatnew || head === :static_parameter || head === :isdefined
if head === :call || head === :foreigncall || head === :new || head === :splatnew || head === :static_parameter || head === :isdefined || head === :boundscheck
(; rt, effects) = abstract_eval_statement_expr(interp, stmt, nothing, irsv)
inst[:flag] |= flags_for_effects(effects)
elseif head === :invoke
Expand Down

0 comments on commit 3df63a1

Please sign in to comment.