Skip to content

Commit

Permalink
fix verifier to allow GlobalRef as assignment RHS (#42417)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3bcdd87)
  • Loading branch information
JeffBezanson authored and KristofferC committed Oct 5, 2021
1 parent 0dd7b37 commit fef46d5
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 fef46d5

Please sign in to comment.