diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2016-11-08 22:25:32 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-11-16 21:37:18 +0800 |
commit | c9f9b2ab4d421e99055425ace5deeb76d8f4fdd2 (patch) | |
tree | 3ac98a19b929334a70d6ed47551b36d41a0f6a62 /test | |
parent | 5011d6339a185a55d6cdc3e952dea7bdd14a2ff7 (diff) | |
download | dexon-solidity-c9f9b2ab4d421e99055425ace5deeb76d8f4fdd2.tar.gz dexon-solidity-c9f9b2ab4d421e99055425ace5deeb76d8f4fdd2.tar.zst dexon-solidity-c9f9b2ab4d421e99055425ace5deeb76d8f4fdd2.zip |
codegen: add a compilation mode and a runtime context to CompilerContext
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityExpressionCompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityExpressionCompiler.cpp b/test/libsolidity/SolidityExpressionCompiler.cpp index e9a05745..09d556a5 100644 --- a/test/libsolidity/SolidityExpressionCompiler.cpp +++ b/test/libsolidity/SolidityExpressionCompiler.cpp @@ -136,7 +136,7 @@ bytes compileFirstExpression( FirstExpressionExtractor extractor(*contract); BOOST_REQUIRE(extractor.expression() != nullptr); - CompilerContext context; + CompilerContext context { CompilationMode::Runtime /* probably simpler */ }; context.resetVisitedNodes(contract); context.setInheritanceHierarchy(inheritanceHierarchy); unsigned parametersSize = _localVariables.size(); // assume they are all one slot on the stack |