aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-10-05 18:47:56 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-10-07 05:05:01 +0800
commitae0477744c942ce748d8acb8b9fa5972a42a2f73 (patch)
tree20024d357342eea8bf5a5135e3c46ff1de17e4e2 /libsolidity
parent3f833c9ef4fde4edc795b5ddce6a7a2b543e3c00 (diff)
downloaddexon-solidity-ae0477744c942ce748d8acb8b9fa5972a42a2f73.tar.gz
dexon-solidity-ae0477744c942ce748d8acb8b9fa5972a42a2f73.tar.zst
dexon-solidity-ae0477744c942ce748d8acb8b9fa5972a42a2f73.zip
Support address in inline assembly
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/inlineasm/AsmParser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp
index 196b314d..ee9c150e 100644
--- a/libsolidity/inlineasm/AsmParser.cpp
+++ b/libsolidity/inlineasm/AsmParser.cpp
@@ -156,12 +156,15 @@ assembly::Statement Parser::parseElementaryOperation(bool _onlySinglePusher)
case Token::Identifier:
case Token::Return:
case Token::Byte:
+ case Token::Address:
{
string literal;
if (m_scanner->currentToken() == Token::Return)
literal = "return";
else if (m_scanner->currentToken() == Token::Byte)
literal = "byte";
+ else if (m_scanner->currentToken() == Token::Address)
+ literal = "address";
else
literal = m_scanner->currentLiteral();
// first search the set of instructions.