Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
DomainIR normalize typed_vcat to vcat
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehsan Totoni committed Sep 12, 2016
1 parent 9361b03 commit e550457
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/domain-ir.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2494,6 +2494,12 @@ function translate_call_globalref(state, env, typ, head, oldfun::ANY, oldargs, f
# ignore 1st arg which is type
new_args = normalize_args(state, env, args[2:end])
expr = mk_expr(typ, head, new_fun, new_args...)
elseif fun.name==:typed_vcat
# convert typed_hcat to regular hcat
new_fun = GlobalRef(Base,:vcat)
# ignore 1st arg which is type
new_args = normalize_args(state, env, args[2:end])
expr = mk_expr(typ, head, new_fun, new_args...)
end
elseif is(fun.mod, Base.Broadcast)
if is(fun.name, :broadcast_shape)
Expand Down

0 comments on commit e550457

Please sign in to comment.