aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-08-26 10:32:30 +0200
committerFredrik Gustafsson <[email protected]>2013-08-26 10:32:30 +0200
commit91a4675a234ecc6c675e4670a35863882a2d50c8 (patch)
tree5eb52f8e47595633c560df1035ec0d15c226ebd6 /lib/compiler/src
parente1e19bdcb4ba8032a4771aaf022c1da766a9d91b (diff)
parente2c0f6dd1fc9b6bd506a481644b9c63f9d575aa1 (diff)
downloadotp-91a4675a234ecc6c675e4670a35863882a2d50c8.tar.gz
otp-91a4675a234ecc6c675e4670a35863882a2d50c8.tar.bz2
otp-91a4675a234ecc6c675e4670a35863882a2d50c8.zip
Merge branch 'maint'
Diffstat (limited to 'lib/compiler/src')
-rw-r--r--lib/compiler/src/beam_validator.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compiler/src/beam_validator.erl b/lib/compiler/src/beam_validator.erl
index eb72290306..70279ab658 100644
--- a/lib/compiler/src/beam_validator.erl
+++ b/lib/compiler/src/beam_validator.erl
@@ -628,6 +628,7 @@ valfun_4({gc_bif,Op,{f,Fail},Live,Src,Dst}, #vst{current=St0}=Vst0) ->
Type = bif_type(Op, Src, Vst),
set_type_reg(Type, Dst, Vst);
valfun_4(return, #vst{current=#st{numy=none}}=Vst) ->
+ assert_term({x,0}, Vst),
kill_state(Vst);
valfun_4(return, #vst{current=#st{numy=NumY}}) ->
error({stack_frame,NumY});