aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-31 05:44:46 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-09-20 08:23:21 +0800
commitefa4598c2305250ac048fad88951008c1cb55227 (patch)
tree46e11636091389d0f882f1d1659e40bc76f52375 /libsolidity/codegen
parent6cec0789b56add0dddb3c478111fb713c6d432c8 (diff)
downloaddexon-solidity-efa4598c2305250ac048fad88951008c1cb55227.tar
dexon-solidity-efa4598c2305250ac048fad88951008c1cb55227.tar.gz
dexon-solidity-efa4598c2305250ac048fad88951008c1cb55227.tar.bz2
dexon-solidity-efa4598c2305250ac048fad88951008c1cb55227.tar.lz
dexon-solidity-efa4598c2305250ac048fad88951008c1cb55227.tar.xz
dexon-solidity-efa4598c2305250ac048fad88951008c1cb55227.tar.zst
dexon-solidity-efa4598c2305250ac048fad88951008c1cb55227.zip
Mark functions static
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp2
-rw-r--r--libsolidity/codegen/ExpressionCompiler.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp
index 631a25ff..c94baa10 100644
--- a/libsolidity/codegen/ExpressionCompiler.cpp
+++ b/libsolidity/codegen/ExpressionCompiler.cpp
@@ -1819,7 +1819,7 @@ void ExpressionCompiler::setLValueToStorageItem(Expression const& _expression)
setLValue<StorageItem>(_expression, *_expression.annotation().type);
}
-bool ExpressionCompiler::cleanupNeededForOp(Type::Category _type, Token::Value _op) const
+bool ExpressionCompiler::cleanupNeededForOp(Type::Category _type, Token::Value _op)
{
if (Token::isCompareOp(_op) || Token::isShiftOp(_op))
return true;
diff --git a/libsolidity/codegen/ExpressionCompiler.h b/libsolidity/codegen/ExpressionCompiler.h
index 5f6c3d64..cdfa096e 100644
--- a/libsolidity/codegen/ExpressionCompiler.h
+++ b/libsolidity/codegen/ExpressionCompiler.h
@@ -119,7 +119,7 @@ private:
/// @returns true if the operator applied to the given type requires a cleanup prior to the
/// operation.
- bool cleanupNeededForOp(Type::Category _type, Token::Value _op) const;
+ static bool cleanupNeededForOp(Type::Category _type, Token::Value _op);
/// @returns the CompilerUtils object containing the current context.
CompilerUtils utils();