aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-03-06 00:00:37 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-03-06 00:00:37 +0800
commit3340053fd95b73facc8a1534a130f58698808f2e (patch)
tree3e10e6ac7a09499c14a6816b6a26e2aedabb0f60 /libsolidity/codegen
parentb8589fbe0f4eea7b74ce45c2dbaf1bbf710e7287 (diff)
downloaddexon-solidity-3340053fd95b73facc8a1534a130f58698808f2e.tar.gz
dexon-solidity-3340053fd95b73facc8a1534a130f58698808f2e.tar.zst
dexon-solidity-3340053fd95b73facc8a1534a130f58698808f2e.zip
Style improvements.
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp
index d3599367..58e2aa62 100644
--- a/libsolidity/codegen/ExpressionCompiler.cpp
+++ b/libsolidity/codegen/ExpressionCompiler.cpp
@@ -924,7 +924,7 @@ bool ExpressionCompiler::visit(NewExpression const&)
bool ExpressionCompiler::visit(MemberAccess const& _memberAccess)
{
- const bool v050 = m_context.experimentalFeatureActive(ExperimentalFeature::V050);
+ bool const v050 = m_context.experimentalFeatureActive(ExperimentalFeature::V050);
CompilerContext::LocationSetter locationSetter(m_context, _memberAccess);
// Check whether the member is a bound function.
@@ -1140,8 +1140,11 @@ bool ExpressionCompiler::visit(MemberAccess const& _memberAccess)
m_context << Instruction::CALLVALUE;
else if (member == "origin")
m_context << Instruction::ORIGIN;
- else if (!v050 && member == "gas")
+ else if (member == "gas")
+ {
+ solAssert(!v050, "");
m_context << Instruction::GAS;
+ }
else if (member == "gasprice")
m_context << Instruction::GASPRICE;
else if (member == "data")