From 8688b5b8835250ffeb925857dd956cf24cfa5429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20S=C3=A1nchez=20Ram=C3=ADrez?= <15837247+mofeing@users.noreply.github.com> Date: Mon, 16 Dec 2024 21:11:42 +0100 Subject: [PATCH] fix `backtrace` calls on debug mode (#387) --- src/Ops.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ops.jl b/src/Ops.jl index 376122e8..fa8c17b3 100644 --- a/src/Ops.jl +++ b/src/Ops.jl @@ -41,7 +41,7 @@ end @noinline function mlir_stacktrace(name, file, line)::MLIR.IR.Location # calling `stacktrace` can add a lot of time overhead, so let's avoid adding debug info if not used - if DEBUG_MODE[] + if !DEBUG_MODE[] return MLIR.IR.Location(name, MLIR.IR.Location(file, line, 0)) end