aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/Compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsolidity/codegen/Compiler.h')
-rw-r--r--libsolidity/codegen/Compiler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libsolidity/codegen/Compiler.h b/libsolidity/codegen/Compiler.h
index fccb68a9..56849ea0 100644
--- a/libsolidity/codegen/Compiler.h
+++ b/libsolidity/codegen/Compiler.h
@@ -35,7 +35,9 @@ class Compiler
public:
explicit Compiler(bool _optimize = false, unsigned _runs = 200):
m_optimize(_optimize),
- m_optimizeRuns(_runs)
+ m_optimizeRuns(_runs),
+ m_context(CompilationMode::Creation, &m_runtimeContext),
+ m_runtimeContext(CompilationMode::Runtime)
{ }
void compileContract(