diff options
author | Björn Gustavsson <[email protected]> | 2018-04-23 15:20:43 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2018-04-25 12:51:21 +0200 |
commit | bf84118febaae7857f12625584f33a649f79aeed (patch) | |
tree | cdfa4693c0c4484fc9c73bcee0da682ec4cdf6b1 /bin | |
parent | 381ab6129998cbd43216eaafabf7cef78c879c5d (diff) | |
download | otp-bf84118febaae7857f12625584f33a649f79aeed.tar.gz otp-bf84118febaae7857f12625584f33a649f79aeed.tar.bz2 otp-bf84118febaae7857f12625584f33a649f79aeed.zip |
Rewrite a call of a literal external fun to a direct call
Rewrite calls such as:
(fun erlang:abs/1)(-42)
to:
erlang:abs(-42)
While we are at it, also add rewriting of apply/2 with a fixed
number of arguments to a direct call of the fun. For example:
apply(F, [A,B])
would be rewritten to:
F(A, B)
https://bugs.erlang.org/browse/ERL-614
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions