Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Nov 28, 2024
1 parent 08a32c2 commit 76ef020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sugar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ end
inst = LLVM.Instruction(iter)
iter = LLVM.API.LLVMGetNextInstruction(iter)
if isa(inst, LLVM.FenceInst)
eraseInst(blk, inst)
Compiler.eraseInst(blk, inst)
end
if isa(inst, LLVM.CallInst)
fn = LLVM.called_operand(inst)
if isa(fn, LLVM.Function)
if LLVM.name(fn) == "julia.safepoint"
eraseInst(blk, inst)
Compiler.eraseInst(blk, inst)
end
end
end
Expand Down

0 comments on commit 76ef020

Please sign in to comment.