aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/AssemblyStack.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-09 19:45:56 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-06-09 19:45:56 +0800
commit1da3af161f94b28b816fd5522795aaae3af190f3 (patch)
tree27432ad1748daa89772967a900e7f2174bfd4b4b /libsolidity/interface/AssemblyStack.cpp
parent3e91177c4d3966be32eea6b4b7b3a63058022dc7 (diff)
downloaddexon-solidity-1da3af161f94b28b816fd5522795aaae3af190f3.tar.gz
dexon-solidity-1da3af161f94b28b816fd5522795aaae3af190f3.tar.zst
dexon-solidity-1da3af161f94b28b816fd5522795aaae3af190f3.zip
Simplify CodeGenerator by remove seldom used case
Diffstat (limited to 'libsolidity/interface/AssemblyStack.cpp')
-rw-r--r--libsolidity/interface/AssemblyStack.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/interface/AssemblyStack.cpp b/libsolidity/interface/AssemblyStack.cpp
index 31d9e494..b6151f56 100644
--- a/libsolidity/interface/AssemblyStack.cpp
+++ b/libsolidity/interface/AssemblyStack.cpp
@@ -86,7 +86,8 @@ eth::LinkerObject AssemblyStack::assemble(Machine _machine) const
{
case Machine::EVM:
{
- auto assembly = assembly::CodeGenerator::assemble(*m_parserResult, *m_analysisInfo);
+ eth::Assembly assembly;
+ assembly::CodeGenerator::assemble(*m_parserResult, *m_analysisInfo, assembly);
return assembly.assemble();
}
case Machine::EVM15: