aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/inline_SUITE_data/bsdecode.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-02-17 11:16:44 +0100
committerBjörn Gustavsson <[email protected]>2015-02-18 13:04:21 +0100
commitd52142f95858fc2ea461e9b2b52c5835e39886d8 (patch)
tree34ca31d35e67f406819f541a21fce73ef16b040a /lib/compiler/test/inline_SUITE_data/bsdecode.erl
parentb2eec25db0bca618853b163ea34c4f9f4ef7f3f1 (diff)
downloadotp-d52142f95858fc2ea461e9b2b52c5835e39886d8.tar.gz
otp-d52142f95858fc2ea461e9b2b52c5835e39886d8.tar.bz2
otp-d52142f95858fc2ea461e9b2b52c5835e39886d8.zip
beam_validator: Tighten and simplify map validation code
The assert_strict_literal_termorder/1 function is used to validate the get_map_elements and has_map_fields instructions. In neither case is it useful to allow an empty lists of fields, so we should no longer allow an empty list. The mmap/2 function is cute, but it is used in only one place, so it is much simpler to write a special-purpose function to extract the keys from the list of map pairs.
Diffstat (limited to 'lib/compiler/test/inline_SUITE_data/bsdecode.erl')
0 files changed, 0 insertions, 0 deletions