Skip to content

Commit

Permalink
Fix order of args to occursin to reduce printing on store error (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Aug 18, 2023
1 parent 8ff150b commit 026696b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5821,7 +5821,7 @@ function julia_error(cstr::Cstring, val::LLVM.API.LLVMValueRef, errtype::API.Err

msg2 = sprint() do io::IO
print(io, "Enzyme cannot deduce type\n")
if !occursin(msg, "Cannot deduce single type of store")
if !occursin("Cannot deduce single type of store", msg)
if ir !== nothing
print(io, "Current scope: \n")
print(io, ir)
Expand Down

0 comments on commit 026696b

Please sign in to comment.