Skip to content

Commit

Permalink
fix backtrace calls on debug mode (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing authored Dec 16, 2024
1 parent a98c02b commit 8688b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ops.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8688b5b

Please sign in to comment.