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
  • Loading branch information
JeffBezanson authored Sep 29, 2021
1 parent fe586a6 commit 3bcdd87
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 3bcdd87

Please sign in to comment.