diff options
author | chriseth <chris@ethereum.org> | 2018-03-06 16:26:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-06 16:26:14 +0800 |
commit | f6c0daec14a047d753c2e501c500995bc7e6dc54 (patch) | |
tree | fa9b30b3c5d4f5a318f29d4ad382e57db82c897a /libsolidity/codegen/ExpressionCompiler.cpp | |
parent | a9e02accb96fb1eb39942fa3a68f1904df7ae41d (diff) | |
parent | 91b13b734d34e6bb5a76fb53624588d035946237 (diff) | |
download | dexon-solidity-f6c0daec14a047d753c2e501c500995bc7e6dc54.tar dexon-solidity-f6c0daec14a047d753c2e501c500995bc7e6dc54.tar.gz dexon-solidity-f6c0daec14a047d753c2e501c500995bc7e6dc54.tar.bz2 dexon-solidity-f6c0daec14a047d753c2e501c500995bc7e6dc54.tar.lz dexon-solidity-f6c0daec14a047d753c2e501c500995bc7e6dc54.tar.xz dexon-solidity-f6c0daec14a047d753c2e501c500995bc7e6dc54.tar.zst dexon-solidity-f6c0daec14a047d753c2e501c500995bc7e6dc54.zip |
Merge pull request #3652 from ethereum/gasleft_v2
Use StaticAnalyzer to deprecate msg.gas instead of conditionally remo…
Diffstat (limited to 'libsolidity/codegen/ExpressionCompiler.cpp')
-rw-r--r-- | libsolidity/codegen/ExpressionCompiler.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index 0ce70f38..d27af7db 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -924,8 +924,6 @@ bool ExpressionCompiler::visit(NewExpression const&) bool ExpressionCompiler::visit(MemberAccess const& _memberAccess) { - bool const v050 = m_context.experimentalFeatureActive(ExperimentalFeature::V050); - CompilerContext::LocationSetter locationSetter(m_context, _memberAccess); // Check whether the member is a bound function. ASTString const& member = _memberAccess.memberName(); @@ -1141,10 +1139,7 @@ bool ExpressionCompiler::visit(MemberAccess const& _memberAccess) else if (member == "origin") m_context << Instruction::ORIGIN; else if (member == "gas") - { - solAssert(!v050, ""); m_context << Instruction::GAS; - } else if (member == "gasprice") m_context << Instruction::GASPRICE; else if (member == "data") |