aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/rtl/hipe_rtl_binary.erl
diff options
context:
space:
mode:
authorMagnus Lång <[email protected]>2015-10-23 17:09:16 +0200
committerMagnus Lång <[email protected]>2015-11-27 18:18:38 +0100
commit148153eb16e873181ff6961f854105a240989265 (patch)
tree307202287cc27ab559e18675667a9a508a0e4559 /lib/hipe/rtl/hipe_rtl_binary.erl
parentfd21382290333e6cc25728c1b6dd7c211ddfc297 (diff)
downloadotp-148153eb16e873181ff6961f854105a240989265.tar.gz
otp-148153eb16e873181ff6961f854105a240989265.tar.bz2
otp-148153eb16e873181ff6961f854105a240989265.zip
hipe: test unit size match in bs_put_binary_all
The unit size field was previously completely discarded when lowering this instruction from BEAM to Icode. This feature was previously missing and expressions such as <<0, <<1:1>>/binary>> would succeed construction when compiled with HiPE.
Diffstat (limited to 'lib/hipe/rtl/hipe_rtl_binary.erl')
-rw-r--r--lib/hipe/rtl/hipe_rtl_binary.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hipe/rtl/hipe_rtl_binary.erl b/lib/hipe/rtl/hipe_rtl_binary.erl
index b549073050..4525994f7d 100644
--- a/lib/hipe/rtl/hipe_rtl_binary.erl
+++ b/lib/hipe/rtl/hipe_rtl_binary.erl
@@ -62,7 +62,7 @@ type_of_operation({bs_init,_,_}) -> construct;
type_of_operation({bs_init_bits,_}) -> construct;
type_of_operation({bs_init_bits,_,_}) -> construct;
type_of_operation({bs_put_binary,_,_}) -> construct;
-type_of_operation({bs_put_binary_all,_}) -> construct;
+type_of_operation({bs_put_binary_all,_,_}) -> construct;
type_of_operation({bs_put_float,_,_,_}) -> construct;
type_of_operation({bs_put_integer,_,_,_}) -> construct;
type_of_operation({bs_put_string,_,_}) -> construct;