aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_type.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-01-10 11:34:13 +0100
committerGitHub <[email protected]>2018-01-10 11:34:13 +0100
commitdf8499995b4994d3f85f4b80fc3c2cf941a99cdc (patch)
treed065f80f7530cf7134544141e098599225442fdd /lib/compiler/src/beam_type.erl
parent3c333686c80b84541e4971b9eb9c97a6eb57ecf9 (diff)
parent1ee21858db7e55b15c2f947ddfa00ae5af5c009d (diff)
downloadotp-df8499995b4994d3f85f4b80fc3c2cf941a99cdc.tar.gz
otp-df8499995b4994d3f85f4b80fc3c2cf941a99cdc.tar.bz2
otp-df8499995b4994d3f85f4b80fc3c2cf941a99cdc.zip
Merge pull request #1674 from bjorng/bjorn/compiler/beam_validator
beam_validator: Strengthen validation of GC instructions OTP-14863
Diffstat (limited to 'lib/compiler/src/beam_type.erl')
-rw-r--r--lib/compiler/src/beam_type.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compiler/src/beam_type.erl b/lib/compiler/src/beam_type.erl
index 6bf3f2795b..c8abfa524f 100644
--- a/lib/compiler/src/beam_type.erl
+++ b/lib/compiler/src/beam_type.erl
@@ -351,6 +351,8 @@ flt_need_heap_2({set,_,_,get_list}, H, Fl) ->
{[],H,Fl};
flt_need_heap_2({set,_,_,{try_catch,_,_}}, H, Fl) ->
{[],H,Fl};
+flt_need_heap_2({set,_,_,init}, H, Fl) ->
+ {[],H,Fl};
%% All other instructions should cause the insertion of an allocation
%% instruction if needed.
flt_need_heap_2(_, H, Fl) ->