aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-11-08 22:25:32 +0800
committerchriseth <c@ethdev.com>2016-11-16 21:37:18 +0800
commitc9f9b2ab4d421e99055425ace5deeb76d8f4fdd2 (patch)
tree3ac98a19b929334a70d6ed47551b36d41a0f6a62 /test
parent5011d6339a185a55d6cdc3e952dea7bdd14a2ff7 (diff)
downloaddexon-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.cpp2
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