diff options
author | Björn Gustavsson <[email protected]> | 2019-01-17 13:25:19 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-01-17 13:25:19 +0100 |
commit | 9627785145f4db991ce0206d2fdc053557720c61 (patch) | |
tree | d7944b37ac9e2e71895c2ebc390cc1718618241e /lib/compiler/src/beam_asm.erl | |
parent | 401bd13ffd39052d4125fbc6fc8360dc08121883 (diff) | |
parent | d4248d50ec9b2b27b2e000bd414f249c71f34c17 (diff) | |
download | otp-9627785145f4db991ce0206d2fdc053557720c61.tar.gz otp-9627785145f4db991ce0206d2fdc053557720c61.tar.bz2 otp-9627785145f4db991ce0206d2fdc053557720c61.zip |
Merge pull request #2097 from bjorng/bjorn/compiler/eliminate-beam_bs
Eliminate the beam_bs compiler pass
Diffstat (limited to 'lib/compiler/src/beam_asm.erl')
-rw-r--r-- | lib/compiler/src/beam_asm.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/src/beam_asm.erl b/lib/compiler/src/beam_asm.erl index df0321e85a..bc1290f6fd 100644 --- a/lib/compiler/src/beam_asm.erl +++ b/lib/compiler/src/beam_asm.erl @@ -424,8 +424,8 @@ encode_arg({f, W}, Dict) -> {encode(?tag_f, W), Dict}; %% encode_arg({'char', C}, Dict) -> %% {encode(?tag_h, C), Dict}; -encode_arg({string, String}, Dict0) -> - {Offset, Dict} = beam_dict:string(String, Dict0), +encode_arg({string, BinString}, Dict0) when is_binary(BinString) -> + {Offset, Dict} = beam_dict:string(BinString, Dict0), {encode(?tag_u, Offset), Dict}; encode_arg({extfunc, M, F, A}, Dict0) -> {Index, Dict} = beam_dict:import(M, F, A, Dict0), |