aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2014-03-03 14:12:20 +0100
committerAnthony Ramine <[email protected]>2014-03-03 14:13:42 +0100
commit5436de7707970f89ecee7ff649bc8ab6b99f8f36 (patch)
tree74ada1b3fd29250fb51ff4da4957f63b83c80db1 /lib/compiler/src
parenta74e66a68f3b4ed590f928b4fd4f0808c6287a32 (diff)
downloadotp-5436de7707970f89ecee7ff649bc8ab6b99f8f36.tar.gz
otp-5436de7707970f89ecee7ff649bc8ab6b99f8f36.tar.bz2
otp-5436de7707970f89ecee7ff649bc8ab6b99f8f36.zip
Properly collect labels in put_map instructions in beam_bool
Reported-by: Ulf Norell
Diffstat (limited to 'lib/compiler/src')
-rw-r--r--lib/compiler/src/beam_bool.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compiler/src/beam_bool.erl b/lib/compiler/src/beam_bool.erl
index 124abd13c1..590665514b 100644
--- a/lib/compiler/src/beam_bool.erl
+++ b/lib/compiler/src/beam_bool.erl
@@ -318,6 +318,8 @@ split_block_label_used([{set,[_],_,{bif,_,{f,Fail}}}|_], Fail) ->
true;
split_block_label_used([{set,[_],_,{alloc,_,{gc_bif,_,{f,Fail}}}}|_], Fail) ->
true;
+split_block_label_used([{set,[_],_,{alloc,_,{put_map,_,{f,Fail}}}}|_], Fail) ->
+ true;
split_block_label_used([_|Is], Fail) ->
split_block_label_used(Is, Fail);
split_block_label_used([], _) -> false.