yul: AsmPrinter fix when appending type name but no type-name is available.

This commit is contained in:
Christian Parpart 2019-06-03 16:54:03 +02:00
parent d01c4195f8
commit b80cc42a7c

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 "";
}