aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/inlineasm/AsmParser.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-05-02 00:40:37 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-05-05 21:21:25 +0800
commitd61f9c4d4ee99cf0d540e3a7b6c7f250bab5f7b6 (patch)
tree0fc2ee9859c412409570d29bea4274e132b3bc9f /libsolidity/inlineasm/AsmParser.cpp
parent0582fcb93b2407379b5e4e4ce55c3f418e7ff433 (diff)
downloaddexon-solidity-d61f9c4d4ee99cf0d540e3a7b6c7f250bab5f7b6.tar.gz
dexon-solidity-d61f9c4d4ee99cf0d540e3a7b6c7f250bab5f7b6.tar.zst
dexon-solidity-d61f9c4d4ee99cf0d540e3a7b6c7f250bab5f7b6.zip
Disable labels in Julia
Diffstat (limited to 'libsolidity/inlineasm/AsmParser.cpp')
-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 d7f78958..8d54d47a 100644
--- a/libsolidity/inlineasm/AsmParser.cpp
+++ b/libsolidity/inlineasm/AsmParser.cpp
@@ -84,6 +84,7 @@ assembly::Statement Parser::parseStatement()
}
case Token::Return: // opcode
case Token::Byte: // opcode
+ case Token::Address: // opcode
default:
break;
}
@@ -119,6 +120,8 @@ assembly::Statement Parser::parseStatement()
else
{
// label
+ if (m_julia)
+ fatalParserError("Labels are not supported.");
Label label = createWithLocation<Label>(identifier.location);
label.name = identifier.name;
return label;