Skip to content

Commit 8688b5b

Browse files
authored
fix backtrace calls on debug mode (#387)
1 parent a98c02b commit 8688b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ops.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ end
4141

4242
@noinline function mlir_stacktrace(name, file, line)::MLIR.IR.Location
4343
# calling `stacktrace` can add a lot of time overhead, so let's avoid adding debug info if not used
44-
if DEBUG_MODE[]
44+
if !DEBUG_MODE[]
4545
return MLIR.IR.Location(name, MLIR.IR.Location(file, line, 0))
4646
end
4747

0 commit comments

Comments
 (0)