diff options
author | Björn-Egil Dahlberg <[email protected]> | 2014-03-17 17:47:00 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2014-03-17 17:47:35 +0100 |
commit | fb3ffad98fb1b35d096eaa3ce941b8390395ae8c (patch) | |
tree | 6733b384a94660e3298b298e57b0b1fe7352c496 /lib/compiler/src/core_lib.erl | |
parent | 5d75a3b453b64ae1b10c8980ec5c146d7b2d5d1a (diff) | |
download | otp-fb3ffad98fb1b35d096eaa3ce941b8390395ae8c.tar.gz otp-fb3ffad98fb1b35d096eaa3ce941b8390395ae8c.tar.bz2 otp-fb3ffad98fb1b35d096eaa3ce941b8390395ae8c.zip |
compiler: Change #c_map{var} to #c_map{arg}
Not only variables are allowed as arguments, the name should reflect that.
Change cerl Map argument interface
* cerl:map_arg/1 is more suitable then cerl:map_val/1 in this case.
Diffstat (limited to 'lib/compiler/src/core_lib.erl')
-rw-r--r-- | lib/compiler/src/core_lib.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/core_lib.erl b/lib/compiler/src/core_lib.erl index ed181e3baa..93ec3bbad5 100644 --- a/lib/compiler/src/core_lib.erl +++ b/lib/compiler/src/core_lib.erl @@ -105,7 +105,7 @@ vu_expr(V, #c_cons{hd=H,tl=T}) -> vu_expr(V, H) orelse vu_expr(V, T); vu_expr(V, #c_tuple{es=Es}) -> vu_expr_list(V, Es); -vu_expr(V, #c_map{var=M,es=Es}) -> +vu_expr(V, #c_map{arg=M,es=Es}) -> vu_expr(V, M) orelse vu_expr_list(V, Es); vu_expr(V, #c_map_pair{key=Key,val=Val}) -> vu_expr_list(V, [Key,Val]); |