aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/cerl_clauses.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-09-24 12:29:09 +0200
committerBjörn Gustavsson <[email protected]>2018-09-26 12:49:26 +0200
commit7318da161d5ed7987c6e524e670219337160abc1 (patch)
tree783a83e6cee3a69a49203b2fb1480d0054c54dab /lib/compiler/src/cerl_clauses.erl
parent8e12d5652d6bb12f18d8a1fe3a1cc0b1ebed4111 (diff)
downloadotp-7318da161d5ed7987c6e524e670219337160abc1.tar.gz
otp-7318da161d5ed7987c6e524e670219337160abc1.tar.bz2
otp-7318da161d5ed7987c6e524e670219337160abc1.zip
beam_ssa_pre_codegen: Fix bug in sanitization of get_map_element
The source map for `get_map_element` is not supposed to be a literal, and the sanitization code is supposed to ensure that. The sanitization incorrectly translated this code: Map = get_tuple_element literal {ok,#{key=>value}}, literal 1 Var = get_map_element Map, literal {a,key} To this code: Var = get_map_element literal #{key=>value}, literal {a,key} Make sure to substitute the arguments for `get_map_element` before looking for a literal source map.
Diffstat (limited to 'lib/compiler/src/cerl_clauses.erl')
0 files changed, 0 insertions, 0 deletions