aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_utils.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-05-13 07:08:22 +0200
committerBjörn Gustavsson <[email protected]>2016-05-13 10:52:26 +0200
commit94feb3f8f9c5e7b67ee06c84ea68932bbebc12e6 (patch)
tree5bede8c101b73cfc1e649b72ae80aa4488cb40d0 /lib/compiler/src/beam_utils.erl
parent8fa837e84dbeeb01d9dd4525719558b4909bd2b1 (diff)
downloadotp-94feb3f8f9c5e7b67ee06c84ea68932bbebc12e6.tar.gz
otp-94feb3f8f9c5e7b67ee06c84ea68932bbebc12e6.tar.bz2
otp-94feb3f8f9c5e7b67ee06c84ea68932bbebc12e6.zip
beam_utils: Remove clause checking for illegal set/4 instruction
I can't remember that clause ever trigger during development. Remove it to eliminated an uncovered line.
Diffstat (limited to 'lib/compiler/src/beam_utils.erl')
-rw-r--r--lib/compiler/src/beam_utils.erl2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/compiler/src/beam_utils.erl b/lib/compiler/src/beam_utils.erl
index 5c54680403..eed30ad6b7 100644
--- a/lib/compiler/src/beam_utils.erl
+++ b/lib/compiler/src/beam_utils.erl
@@ -239,8 +239,6 @@ combine_heap_needs(H1, H2) when is_integer(H1), is_integer(H2) ->
%% 'killed' means that Reg is assigned a new value or killed by an
%% allocation instruction. 'used' means that Reg is used in some way.
-check_liveness(R, [{set,_,_,_}=I|_], St) ->
- erlang:error(only_allowed_in_blocks, [R,I,St]);
check_liveness(R, [{block,Blk}|Is], #live{bl=BlockCheck}=St0) ->
case BlockCheck(R, Blk, St0) of
{transparent,St} -> check_liveness(R, Is, St);