aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-02-26 06:36:22 +0100
committerBjörn Gustavsson <[email protected]>2015-03-09 11:54:43 +0100
commit16d02eb264e2ff4c2c7bbe153c0dedc38e4267a5 (patch)
tree3b168134b63b22ae05728cb1863a94c3437c568a /lib/compiler
parent0d16828327959cc6a3870474ec7064f6fde9deae (diff)
downloadotp-16d02eb264e2ff4c2c7bbe153c0dedc38e4267a5.tar.gz
otp-16d02eb264e2ff4c2c7bbe153c0dedc38e4267a5.tar.bz2
otp-16d02eb264e2ff4c2c7bbe153c0dedc38e4267a5.zip
v3_codegen: Don't save options in the process dictionary
v3_codegen puts the compilation in the process dictionary, but never uses them.
Diffstat (limited to 'lib/compiler')
-rw-r--r--lib/compiler/src/v3_codegen.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/compiler/src/v3_codegen.erl b/lib/compiler/src/v3_codegen.erl
index cbe50b93b0..fadc40492c 100644
--- a/lib/compiler/src/v3_codegen.erl
+++ b/lib/compiler/src/v3_codegen.erl
@@ -69,10 +69,8 @@
stk=[], %Stack table
res=[]}). %Reserved regs: [{reserved,I,V}]
-module({Mod,Exp,Attr,Forms}, Options) ->
- put(?MODULE, Options),
+module({Mod,Exp,Attr,Forms}, _Options) ->
{Fs,St} = functions(Forms, {atom,Mod}),
- erase(?MODULE),
{ok,{Mod,Exp,Attr,Fs,St#cg.lcount}}.
functions(Forms, AtomMod) ->