Skip to content

Commit

Permalink
Update validation.jl (#2129)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Nov 28, 2024
1 parent 6a8e461 commit 06e791e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/validation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,11 @@ function check_ir!(@nospecialize(job::CompilerJob), errors::Vector{IRError}, imp
opv = operands(loadfn)[1]
if !isa(opv, LLVM.GlobalVariable)
for iv in instructions(last(blocks(initfn)))
if !(isa, LLVM.StoreInst)
if !(iv isa LLVM.StoreInst)
continue
end
gv = operands(iv)[2]
if !(isa, LLVM.GlobalVariable)
if !(gv isa LLVM.GlobalVariable)
continue
end
opv = gv
Expand Down

0 comments on commit 06e791e

Please sign in to comment.