aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_gen_per.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-10-31 15:34:00 +0100
committerBjörn Gustavsson <[email protected]>2014-01-20 12:22:42 +0100
commit912b330733144ae37e7a4da1bfea5be2a46d7594 (patch)
tree83567913bf2edbf5d421aa3843a488b9089a5aba /lib/asn1/src/asn1ct_gen_per.erl
parentdeae68b06e58027efe0b203bb2c30d3addb24f96 (diff)
downloadotp-912b330733144ae37e7a4da1bfea5be2a46d7594.tar.gz
otp-912b330733144ae37e7a4da1bfea5be2a46d7594.tar.bz2
otp-912b330733144ae37e7a4da1bfea5be2a46d7594.zip
Keep type information in the apply intermediate instruction
To facilitate inlining of apply calls in the intermediate format.
Diffstat (limited to 'lib/asn1/src/asn1ct_gen_per.erl')
-rw-r--r--lib/asn1/src/asn1ct_gen_per.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1ct_gen_per.erl b/lib/asn1/src/asn1ct_gen_per.erl
index 8b999ddbf0..f3389be6b3 100644
--- a/lib/asn1/src/asn1ct_gen_per.erl
+++ b/lib/asn1/src/asn1ct_gen_per.erl
@@ -149,7 +149,7 @@ gen_encode_prim_imm(Val, #type{def=Type0,constraint=Constraint}, Aligned) ->
case Constraint of
[#'Externaltypereference'{type=Tname}] ->
EncFunc = enc_func(Tname),
- Imm = [{apply,EncFunc,[{expr,Val}]}],
+ Imm = [{apply,{local,EncFunc,[]},[{expr,Val}]}],
asn1ct_imm:per_enc_open_type(Imm, Aligned);
[] ->
Imm = [{call,erlang,iolist_to_binary,[{expr,Val}]}],