aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-03-06 06:13:51 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-03-06 06:16:26 +0800
commit91b13b734d34e6bb5a76fb53624588d035946237 (patch)
treec0fe84429572c32cffda17009d350f7ddd6cbda7 /libsolidity/codegen
parent2213f9946b34a6e8f5604a6b821d31788dcee08b (diff)
downloaddexon-solidity-91b13b734d34e6bb5a76fb53624588d035946237.tar.gz
dexon-solidity-91b13b734d34e6bb5a76fb53624588d035946237.tar.zst
dexon-solidity-91b13b734d34e6bb5a76fb53624588d035946237.zip
Use StaticAnalyzer to deprecate msg.gas instead of conditionally removing it in MagicType.
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp
index 58e2aa62..4c6e9a56 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")