Skip to content

Commit

Permalink
Update sugar.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Nov 29, 2024
1 parent e67a1ac commit 6a62f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sugar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ end
loop = LLVM.BasicBlock(llvm_f, "loop")
exit = LLVM.BasicBlock(llvm_f, "exit")

br!(builder, icmp!(builder, LLVM.API.LLVMIntEQ, LLVM.ConstantInt(0), len), exit, loop)
LLVM.br!(builder, LLVM.icmp!(builder, LLVM.API.LLVMIntEQ, LLVM.ConstantInt(0), len), exit, loop)

LLVM.position!(builder, loop)
idx = LLVM.phi!(builder, ity)
Expand Down

0 comments on commit 6a62f72

Please sign in to comment.