diff options
author | Björn Gustavsson <[email protected]> | 2015-02-27 11:54:52 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-02-27 11:54:52 +0100 |
commit | ea46a223e34eefbc765facb0ec0fd90fb891c53d (patch) | |
tree | e95e79cc8f3ca9b8a37ad484fac1defa926cfaee /lib/compiler | |
parent | 7fc1ca373113e10c0af2c839f4b1ddb7500b35d6 (diff) | |
download | otp-ea46a223e34eefbc765facb0ec0fd90fb891c53d.tar.gz otp-ea46a223e34eefbc765facb0ec0fd90fb891c53d.tar.bz2 otp-ea46a223e34eefbc765facb0ec0fd90fb891c53d.zip |
beam_validator: Teach bif_type/3 and is_bif_safe/2 about is_map/1
Diffstat (limited to 'lib/compiler')
-rw-r--r-- | lib/compiler/src/beam_validator.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compiler/src/beam_validator.erl b/lib/compiler/src/beam_validator.erl index e60184c929..2a256fa7d7 100644 --- a/lib/compiler/src/beam_validator.erl +++ b/lib/compiler/src/beam_validator.erl @@ -1554,6 +1554,7 @@ bif_type(is_float, [_], _) -> bool; bif_type(is_function, [_], _) -> bool; bif_type(is_integer, [_], _) -> bool; bif_type(is_list, [_], _) -> bool; +bif_type(is_map, [_], _) -> bool; bif_type(is_number, [_], _) -> bool; bif_type(is_pid, [_], _) -> bool; bif_type(is_port, [_], _) -> bool; @@ -1583,6 +1584,7 @@ is_bif_safe(is_float, 1) -> true; is_bif_safe(is_function, 1) -> true; is_bif_safe(is_integer, 1) -> true; is_bif_safe(is_list, 1) -> true; +is_bif_safe(is_map, 1) -> true; is_bif_safe(is_number, 1) -> true; is_bif_safe(is_pid, 1) -> true; is_bif_safe(is_port, 1) -> true; |