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

Commit

Permalink
Translate rand! and randn! to mmap! instead of mmap
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul H. Liu committed Dec 28, 2015
1 parent c0ced45 commit b046a90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/domain-ir.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,8 @@ function translate_call_map(state, env, typ, fun, args::Array{Any,1})
end
args[i] = arg_
end
expr = mmapRemoveDupArg!(mk_mmap(args, domF))
expr = endswith(string(fun), '!') ? mk_mmap(args, domF) : mk_mmap!(args, domF)
expr = mmapRemoveDupArg!(expr)
expr.typ = typ
return expr
end
Expand Down

0 comments on commit b046a90

Please sign in to comment.