Skip to content

Commit 3bcdd87

Browse files
authored
fix verifier to allow GlobalRef as assignment RHS (#42417)
1 parent fe586a6 commit 3bcdd87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

base/compiler/ssair/verify.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ function verify_ir(ir::IRCode, print::Bool=true)
202202
@verify_error "SSAValue as assignment LHS"
203203
error("")
204204
end
205+
if stmt.args[2] isa GlobalRef
206+
# undefined GlobalRef as assignment RHS is OK
207+
continue
208+
end
205209
elseif stmt.head === :gc_preserve_end
206210
# We allow gc_preserve_end tokens to span across try/catch
207211
# blocks, which isn't allowed for regular SSA values, so

0 commit comments

Comments
 (0)