diff --git a/libyul/AsmPrinter.cpp b/libyul/AsmPrinter.cpp index a3d9eafc3..71151a0cf 100644 --- a/libyul/AsmPrinter.cpp +++ b/libyul/AsmPrinter.cpp @@ -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 ""; }