diff options
author | Björn Gustavsson <[email protected]> | 2018-03-26 13:22:15 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2018-03-26 13:22:15 +0200 |
commit | bebf113ecd2d6a27808fc952e1f14db78515efb3 (patch) | |
tree | 9764083293c4a758f33a930b57d7268ce448b569 /lib/compiler/src/v3_core.erl | |
parent | 4137ef162e23307d40616f70206dd2195c453576 (diff) | |
parent | a5e80861faedc84d373ccda95ae6f8c7aff11bcf (diff) | |
download | otp-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.erl | 2 |
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}. |