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

Commit

Permalink
Use type passed in instead of guess a wrong type for getindex
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul H. Liu committed Sep 15, 2016
1 parent e1ad28b commit 43d4950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/domain-ir.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1733,7 +1733,7 @@ function translate_call_getsetindex(state, env, typ, fun::Symbol, args::Array{An
if is(fun, :getindex)
expr = mk_select(arr, ranges)
# TODO: need to calculate the correct result dimesion
typ = arrTyp
typ = (typ == Any) ? arrTyp : typ
else
args = Any[inline_select(env, state, e) for e in Any[mk_select(arr, ranges), args[2]]]
var = args[2]
Expand Down

0 comments on commit 43d4950

Please sign in to comment.