From 026696bb58eda7f56d0d3f06dd28e22aa0f586dd Mon Sep 17 00:00:00 2001 From: William Moses Date: Sat, 19 Aug 2023 08:04:01 +0900 Subject: [PATCH] Fix order of args to occursin to reduce printing on store error (#1017) --- src/compiler.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler.jl b/src/compiler.jl index b3dfc3047a..ee5f327d6f 100644 --- a/src/compiler.jl +++ b/src/compiler.jl @@ -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)