mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Assembly: Changed parser to use strict assembly mode.
This commit is contained in:
parent
99034abcbf
commit
5a52fa547e
@ -1152,7 +1152,7 @@ ASTPointer<InlineAssembly> Parser::parseInlineAssembly(ASTPointer<ASTString> con
|
|||||||
SourceLocation location{position(), -1, source()};
|
SourceLocation location{position(), -1, source()};
|
||||||
|
|
||||||
expectToken(Token::Assembly);
|
expectToken(Token::Assembly);
|
||||||
yul::Dialect const& dialect = yul::EVMDialect::looseAssemblyForEVM(m_evmVersion);
|
yul::Dialect const& dialect = yul::EVMDialect::strictAssemblyForEVM(m_evmVersion);
|
||||||
if (m_scanner->currentToken() == Token::StringLiteral)
|
if (m_scanner->currentToken() == Token::StringLiteral)
|
||||||
{
|
{
|
||||||
if (m_scanner->currentLiteral() != "evmasm")
|
if (m_scanner->currentLiteral() != "evmasm")
|
||||||
|
Loading…
Reference in New Issue
Block a user