From 6a62f72e2591a22a3380dcc7e99bc8eebfdbc429 Mon Sep 17 00:00:00 2001 From: William Moses Date: Thu, 28 Nov 2024 21:28:35 -0500 Subject: [PATCH] Update sugar.jl --- src/sugar.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sugar.jl b/src/sugar.jl index 3e2798e43e..205556b7af 100644 --- a/src/sugar.jl +++ b/src/sugar.jl @@ -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)