aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_validator.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-04-23 11:47:21 +0200
committerBjörn Gustavsson <[email protected]>2018-08-17 09:50:58 +0200
commit382297819ece0518a0e94b484c8ed8cb25e507c7 (patch)
tree5f176bd40ad02cf63fd39f96ac1f7bb5ed3bfc08 /lib/compiler/src/beam_validator.erl
parent316a794b41b2f4173b2b188ac4c91adeaa52c616 (diff)
downloadotp-382297819ece0518a0e94b484c8ed8cb25e507c7.tar.gz
otp-382297819ece0518a0e94b484c8ed8cb25e507c7.tar.bz2
otp-382297819ece0518a0e94b484c8ed8cb25e507c7.zip
beam_validator: Allow get_tuple_element before dsetelement
Diffstat (limited to 'lib/compiler/src/beam_validator.erl')
-rw-r--r--lib/compiler/src/beam_validator.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compiler/src/beam_validator.erl b/lib/compiler/src/beam_validator.erl
index 8b59746cb6..57b5083c1f 100644
--- a/lib/compiler/src/beam_validator.erl
+++ b/lib/compiler/src/beam_validator.erl
@@ -909,6 +909,8 @@ val_dsetel({set_tuple_element,_,_,_}, #vst{current=#st{setelem=false}}) ->
error(illegal_context_for_set_tuple_element);
val_dsetel({set_tuple_element,_,_,_}, #vst{current=#st{setelem=true}}=Vst) ->
Vst;
+val_dsetel({get_tuple_element,_,_,_}, Vst) ->
+ Vst;
val_dsetel({line,_}, Vst) ->
Vst;
val_dsetel(_, #vst{current=#st{setelem=true}=St}=Vst) ->