Skip to content

Commit

Permalink
Reduce warnings (and have as runtime errors) (#961)
Browse files Browse the repository at this point in the history
* Reduce warnings (and have as runtime errors)

* Update src/compiler.jl

---------

Co-authored-by: Valentin Churavy <vchuravy@users.noreply.github.com>
  • Loading branch information
wsmoses and vchuravy authored Jul 24, 2023
1 parent 2126a61 commit a6eb03d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4749,8 +4749,7 @@ function arraycopy_common(fwd, B, orig, origArg, gutils, shadowdst)
# ip = API.EnzymeTypeAnalyzerToString(analyzer)
# sval = Base.unsafe_string(ip)
# API.EnzymeStringFree(ip)
GPUCompiler.@safe_warn "Unknown concrete type" tt=string(tt) orig=string(orig)
emit_error(B, orig, "Enzyme: Unknown concrete type in arraycopy_common")
emit_error(B, orig, "Enzyme: Unknown concrete type in arraycopy_common. tt: " * string(tt))
return nothing
end

Expand Down

0 comments on commit a6eb03d

Please sign in to comment.