diff options
author | Björn Gustavsson <[email protected]> | 2017-08-07 07:00:14 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-08-07 07:20:29 +0200 |
commit | f59e70ce61913356a67d58e03d6b68c29e983363 (patch) | |
tree | 370a0b69f33dc1db37fb79bc249e7402719cb101 /lib/ssl/test/ssl_sni_SUITE.erl | |
parent | 520310feef0d76c0f99447187f3574408b219ae5 (diff) | |
download | otp-f59e70ce61913356a67d58e03d6b68c29e983363.tar.gz otp-f59e70ce61913356a67d58e03d6b68c29e983363.tar.bz2 otp-f59e70ce61913356a67d58e03d6b68c29e983363.zip |
sys_core_fold: Fix unsafe optimization of non-variable apply
The sys_core_fold pass would do an unsafe "optimization" when an
apply operation did not have a variable in the function position
as in the following example:
> cat test1.core
module 'test1' ['test1'/2]
attributes []
'i'/1 =
fun (_f) -> _f
'test1'/2 =
fun (_f, _x) ->
apply apply 'i'/1 (_f) (_x)
end
> erlc test1.core
no_file: Warning: invalid function call
Reported-by: Mikael Pettersson
Diffstat (limited to 'lib/ssl/test/ssl_sni_SUITE.erl')
0 files changed, 0 insertions, 0 deletions