diff options
author | chriseth <chris@ethereum.org> | 2018-02-22 06:56:42 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-03-02 00:19:35 +0800 |
commit | f75a41132553d073202d8bc2ea65cc287c7085b7 (patch) | |
tree | ed4718f854ec68629ec792665920a8603111292c /libsolidity/interface | |
parent | 85785710e6182a5abb68e5339f052b4a451d086e (diff) | |
download | dexon-solidity-f75a41132553d073202d8bc2ea65cc287c7085b7.tar.gz dexon-solidity-f75a41132553d073202d8bc2ea65cc287c7085b7.tar.zst dexon-solidity-f75a41132553d073202d8bc2ea65cc287c7085b7.zip |
Provide target EVM version in CompilerContext.
Diffstat (limited to 'libsolidity/interface')
-rw-r--r-- | libsolidity/interface/CompilerStack.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index 51dcf6f4..2f733825 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -684,7 +684,7 @@ void CompilerStack::compileContract( for (auto const* dependency: _contract.annotation().contractDependencies) compileContract(*dependency, _compiledContracts); - shared_ptr<Compiler> compiler = make_shared<Compiler>(m_optimize, m_optimizeRuns); + shared_ptr<Compiler> compiler = make_shared<Compiler>(m_evmVersion, m_optimize, m_optimizeRuns); Contract& compiledContract = m_contracts.at(_contract.fullyQualifiedName()); string metadata = createMetadata(compiledContract); bytes cborEncodedHash = @@ -743,7 +743,7 @@ void CompilerStack::compileContract( { if (!_contract.isLibrary()) { - Compiler cloneCompiler(m_optimize, m_optimizeRuns); + Compiler cloneCompiler(m_evmVersion, m_optimize, m_optimizeRuns); cloneCompiler.compileClone(_contract, _compiledContracts); compiledContract.cloneObject = cloneCompiler.assembledObject(); } |