aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_a.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-01-12 10:35:53 +0100
committerGitHub <[email protected]>2018-01-12 10:35:53 +0100
commit06f195bb87ea88e550364f6390de93a96b86be6c (patch)
tree871c6cc25044ce4558053ffd1871670fa42a7bd6 /lib/compiler/src/beam_a.erl
parent24ff724ae5714d0b5e84f38ecb3b468f1d3cf8f0 (diff)
parentd26326c38dd5e79b78703d26667c1b79e3fb6e9a (diff)
downloadotp-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_a.erl')
-rw-r--r--lib/compiler/src/beam_a.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compiler/src/beam_a.erl b/lib/compiler/src/beam_a.erl
index 6f09dc4be4..7df2edd714 100644
--- a/lib/compiler/src/beam_a.erl
+++ b/lib/compiler/src/beam_a.erl
@@ -58,7 +58,8 @@ rename_instrs([{call_only,A,F}|Is]) ->
rename_instrs([{call_ext_only,A,F}|Is]) ->
[{call_ext,A,F},return|rename_instrs(Is)];
rename_instrs([{'%live',_}|Is]) ->
- %% When compiling from old .S files.
+ %% Ignore old type of live annotation. Only happens when compiling
+ %% from very old .S files.
rename_instrs(Is);
rename_instrs([I|Is]) ->
[rename_instr(I)|rename_instrs(Is)];