diff options
author | Björn-Egil Dahlberg <[email protected]> | 2014-10-01 16:59:57 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2014-10-01 16:59:57 +0200 |
commit | 7b0b18e2929f900ae958e50da98cc58bb9983de5 (patch) | |
tree | 9b72da5005bc2f291bf064858a5248ee0e8029a2 | |
parent | f9231b8df9dafce7f7d9f6c58a55dd672126c001 (diff) | |
download | otp-7b0b18e2929f900ae958e50da98cc58bb9983de5.tar.gz otp-7b0b18e2929f900ae958e50da98cc58bb9983de5.tar.bz2 otp-7b0b18e2929f900ae958e50da98cc58bb9983de5.zip |
compiler: Fix harmless need_heap error for Maps
Need heap for maps is zero and fall through is also zero.
-rw-r--r-- | lib/compiler/src/v3_codegen.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/v3_codegen.erl b/lib/compiler/src/v3_codegen.erl index 7cfc8d8197..8c1a0c08ac 100644 --- a/lib/compiler/src/v3_codegen.erl +++ b/lib/compiler/src/v3_codegen.erl @@ -210,7 +210,7 @@ need_heap_0([], H, Acc) -> need_heap_1(#l{ke={set,_,{binary,_}},i=I}, H) -> {need_heap_need(I, H),0}; -need_heap_1(#l{ke={set,_,{map,_,_}},i=I}, H) -> +need_heap_1(#l{ke={set,_,{map,_,_,_}},i=I}, H) -> {need_heap_need(I, H),0}; need_heap_1(#l{ke={set,_,Val}}, H) -> %% Just pass through adding to needed heap. |