Skip to content

Commit

Permalink
fix verifier to allow GlobalRef as assignment RHS (JuliaLang#42417)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson authored and LilithHafner committed Mar 8, 2022
1 parent 54dfaa6 commit fce0622
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base/compiler/ssair/verify.jl
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ function verify_ir(ir::IRCode, print::Bool=true)
@verify_error "SSAValue as assignment LHS"
error("")
end
if stmt.args[2] isa GlobalRef
# undefined GlobalRef as assignment RHS is OK
continue
end
elseif stmt.head === :gc_preserve_end
# We allow gc_preserve_end tokens to span across try/catch
# blocks, which isn't allowed for regular SSA values, so
Expand Down

0 comments on commit fce0622

Please sign in to comment.