Skip to content

Commit 4aab1d7

Browse files
authored
Merge pull request #226 from JuliaDiff/kf/boundscheckexpr
forward_visit!: Don't break on stmt-level Expr(:boundscheck)
2 parents e7c8abd + bc07dd0 commit 4aab1d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/codegen/forward_demand.jl

+2
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ function forward_visit!(ir::IRCode, ssa::SSAValue, order::Int, ssa_orders::Vecto
187187
return
188188
elseif isexpr(stmt, :loopinfo) #TODO preserve this properly
189189
return
190+
elseif isexpr(stmt, :boundscheck)
191+
return
190192
elseif !isa(stmt, Expr)
191193
return
192194
else

0 commit comments

Comments
 (0)