aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-03-06 09:11:59 +0100
committerBjörn Gustavsson <[email protected]>2018-08-17 09:50:58 +0200
commitec2f6ef0d5170220d39ad3a8e763fe2e5b9b7bb7 (patch)
tree81817129eba05a55022d6a9a918c36a02e2a793b /lib/compiler
parent44ee726f87130ef65af350d00300384c36595b2f (diff)
downloadotp-ec2f6ef0d5170220d39ad3a8e763fe2e5b9b7bb7.tar.gz
otp-ec2f6ef0d5170220d39ad3a8e763fe2e5b9b7bb7.tar.bz2
otp-ec2f6ef0d5170220d39ad3a8e763fe2e5b9b7bb7.zip
beam_trim: Handle an empty list of instructions
Diffstat (limited to 'lib/compiler')
-rw-r--r--lib/compiler/src/beam_trim.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/beam_trim.erl b/lib/compiler/src/beam_trim.erl
index 4da0985085..1acbedd45b 100644
--- a/lib/compiler/src/beam_trim.erl
+++ b/lib/compiler/src/beam_trim.erl
@@ -288,7 +288,7 @@ frame_size([{get_map_elements,{f,L},_,_}|Is], Safe) ->
frame_size([{deallocate,N}|_], _) -> N;
frame_size([{line,_}|Is], Safe) ->
frame_size(Is, Safe);
-frame_size([_|_], _) -> throw(not_possible).
+frame_size(_, _) -> throw(not_possible).
frame_size_branch(0, Is, Safe) ->
frame_size(Is, Safe);