aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/v3_core.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-03-26 13:22:15 +0200
committerGitHub <[email protected]>2018-03-26 13:22:15 +0200
commitbebf113ecd2d6a27808fc952e1f14db78515efb3 (patch)
tree9764083293c4a758f33a930b57d7268ce448b569 /lib/compiler/src/v3_core.erl
parent4137ef162e23307d40616f70206dd2195c453576 (diff)
parenta5e80861faedc84d373ccda95ae6f8c7aff11bcf (diff)
downloadotp-bebf113ecd2d6a27808fc952e1f14db78515efb3.tar.gz
otp-bebf113ecd2d6a27808fc952e1f14db78515efb3.tar.bz2
otp-bebf113ecd2d6a27808fc952e1f14db78515efb3.zip
Merge pull request #1761 from bjorng/bjorn/compiler/fix-atom-leak/ERL-563/OTP-14968
Stop the compiler from overflowing the atom table
Diffstat (limited to 'lib/compiler/src/v3_core.erl')
-rw-r--r--lib/compiler/src/v3_core.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/v3_core.erl b/lib/compiler/src/v3_core.erl
index 8cf8c69fef..4799105d05 100644
--- a/lib/compiler/src/v3_core.erl
+++ b/lib/compiler/src/v3_core.erl
@@ -2005,7 +2005,7 @@ new_fun_name(Type, #core{fcount=C}=St) ->
%% new_var_name(State) -> {VarName,State}.
new_var_name(#core{vcount=C}=St) ->
- {list_to_atom("@c" ++ integer_to_list(C)),St#core{vcount=C + 1}}.
+ {C,St#core{vcount=C + 1}}.
%% new_var(State) -> {{var,Name},State}.
%% new_var(LineAnno, State) -> {{var,Name},State}.