Merge pull request #6883 from ethereum/yul-ast-printer-notypes

yul: AsmPrinter fix when appending type name but no type-name is available
This commit is contained in:
Leonardo 2019-06-05 13:41:27 +02:00 committed by GitHub
commit 68e24475e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,7 +266,7 @@ string AsmPrinter::formatTypedName(TypedName _variable) const
string AsmPrinter::appendTypeName(YulString _type) const
{
if (m_yul)
if (m_yul && !_type.empty())
return ":" + _type.str();
return "";
}