aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-12-06 07:45:34 +0100
committerBjörn Gustavsson <[email protected]>2017-12-07 10:09:35 +0100
commit31465f4296bc0b02832c7712402f41e18207aadd (patch)
tree237c6f944cbdd0d5f728f57995c6e22dbbdd3d2a /lib/compiler/src
parent596921c3467b8e6b06340e492c3fbba687b74d01 (diff)
downloadotp-31465f4296bc0b02832c7712402f41e18207aadd.tar.gz
otp-31465f4296bc0b02832c7712402f41e18207aadd.tar.bz2
otp-31465f4296bc0b02832c7712402f41e18207aadd.zip
v3_codegen: Remove unnecessary clause for handling #cg_block{}
The function guard_cg/5 handles constructs found within the records #k_guard_clause{] and #k_protected{}. Since #k_guard_clause{} can only contain a #k_protected{}, and #k_protected{} in turn cannot contain a #cg_block{}, the clause for handling #cg_block{} in guard_cg/5 is never executed and can be removed.
Diffstat (limited to 'lib/compiler/src')
-rw-r--r--lib/compiler/src/v3_codegen.erl2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/compiler/src/v3_codegen.erl b/lib/compiler/src/v3_codegen.erl
index 0a1e7aeb45..cfc0bcf9ba 100644
--- a/lib/compiler/src/v3_codegen.erl
+++ b/lib/compiler/src/v3_codegen.erl
@@ -1487,8 +1487,6 @@ guard_clause_cg(#k_guard_clause{anno=#l{vdb=Vdb},guard=G,body=B}, Fail, Bef, St0
guard_cg(#k_protected{arg=Ts,ret=Rs,anno=#l{i=I,vdb=Pdb}}, Fail, _Vdb, Bef, St) ->
protected_cg(Ts, Rs, Fail, I, Pdb, Bef, St);
-guard_cg(#cg_block{es=Ts,anno=#l{i=I,vdb=Bdb}}, Fail, _Vdb, Bef, St) ->
- guard_cg_list(Ts, Fail, I, Bdb, Bef, St);
guard_cg(#k_test{anno=#l{i=I},op=Test0,args=As,inverted=Inverted},
Fail, Vdb, Bef, St0) ->
#k_remote{mod=#k_atom{val=erlang},name=#k_atom{val=Test}} = Test0,