diff options
author | Björn Gustavsson <[email protected]> | 2018-01-12 10:35:53 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2018-01-12 10:35:53 +0100 |
commit | 06f195bb87ea88e550364f6390de93a96b86be6c (patch) | |
tree | 871c6cc25044ce4558053ffd1871670fa42a7bd6 /lib/compiler/src/beam_record.erl | |
parent | 24ff724ae5714d0b5e84f38ecb3b468f1d3cf8f0 (diff) | |
parent | d26326c38dd5e79b78703d26667c1b79e3fb6e9a (diff) | |
download | otp-06f195bb87ea88e550364f6390de93a96b86be6c.tar.gz otp-06f195bb87ea88e550364f6390de93a96b86be6c.tar.bz2 otp-06f195bb87ea88e550364f6390de93a96b86be6c.zip |
Merge pull request #1663 from bjorng/bjorn/compiler/refactor-annotations
Refactor '%live' and '%def' annotations
Diffstat (limited to 'lib/compiler/src/beam_record.erl')
-rw-r--r-- | lib/compiler/src/beam_record.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/beam_record.erl b/lib/compiler/src/beam_record.erl index db1053e48c..58a6de6775 100644 --- a/lib/compiler/src/beam_record.erl +++ b/lib/compiler/src/beam_record.erl @@ -71,7 +71,7 @@ rewrite([{test,test_arity,Fail,[Src,N]}=TA, I = {test,is_tagged_tuple,Fail,[Src,N,Atom]}, rewrite(Is, Idx, Def, [I|Acc]) end; -rewrite([{block,[{'%def',Def}|Bl]}|Is], Idx, _Def, Acc) -> +rewrite([{block,[{'%anno',{def,Def}}|Bl]}|Is], Idx, _Def, Acc) -> rewrite(Is, Idx, Def, [{block,Bl}|Acc]); rewrite([{label,L}=I|Is], Idx0, Def, Acc) -> Idx = beam_utils:index_label(L, Acc, Idx0), |