Compile fix.

This commit is contained in:
Christian Parpart 2019-10-23 13:08:17 +02:00
parent 7e01696030
commit c6152b8059

View File

@ -1281,7 +1281,7 @@ bool ExpressionCompiler::visit(MemberAccess const& _memberAccess)
if (FunctionCall const* funCall = dynamic_cast<FunctionCall const*>(&_memberAccess.expression())) if (FunctionCall const* funCall = dynamic_cast<FunctionCall const*>(&_memberAccess.expression()))
if (auto const* addr = dynamic_cast<ElementaryTypeNameExpression const*>(&funCall->expression())) if (auto const* addr = dynamic_cast<ElementaryTypeNameExpression const*>(&funCall->expression()))
if ( if (
addr->typeName().token() == Token::Address && addr->type().typeName().token() == Token::Address &&
funCall->arguments().size() == 1 funCall->arguments().size() == 1
) )
if (auto arg = dynamic_cast<Identifier const*>( funCall->arguments().front().get())) if (auto arg = dynamic_cast<Identifier const*>( funCall->arguments().front().get()))