aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-25 17:40:14 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-25 17:40:14 +0800
commit71b0d8107aae500a5301e675aef3515539efe02f (patch)
tree8a844d94ef6c66b7c82610f5a966e64f4b9cf8d5 /ExpressionCompiler.cpp
parent54121a0d787df1b730fa523b21040c312dda4bf6 (diff)
downloaddexon-solidity-71b0d8107aae500a5301e675aef3515539efe02f.tar.gz
dexon-solidity-71b0d8107aae500a5301e675aef3515539efe02f.tar.zst
dexon-solidity-71b0d8107aae500a5301e675aef3515539efe02f.zip
LocationSetter in some extra places during Compiling
- Also adjusted the test, and fixed its error reporting
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r--ExpressionCompiler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp
index 90a3f3ac..94c71fc0 100644
--- a/ExpressionCompiler.cpp
+++ b/ExpressionCompiler.cpp
@@ -68,6 +68,7 @@ void ExpressionCompiler::appendStateVariableInitialization(CompilerContext& _con
void ExpressionCompiler::appendStateVariableInitialization(VariableDeclaration const& _varDecl)
{
+ CompilerContext::LocationSetter locationSetter(m_context, &_varDecl);
LValue var = LValue(m_context);
var.fromDeclaration(_varDecl, _varDecl.getValue()->getLocation());
var.storeValue(*_varDecl.getType(), _varDecl.getLocation());
@@ -999,6 +1000,7 @@ void ExpressionCompiler::appendExpressionCopyToMemory(Type const& _expectedType,
void ExpressionCompiler::appendStateVariableAccessor(VariableDeclaration const& _varDecl)
{
+ CompilerContext::LocationSetter locationSetter(m_context, &_varDecl);
FunctionType accessorType(_varDecl);
unsigned length = 0;