AsmPrinter: Don't include whitespace after @src if there's no code snippet

This commit is contained in:
Kamil Śliwak
2021-09-17 21:46:12 +02:00
parent d7ddfcc665
commit a9b5835e5d
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ string AsmPrinter::formatSourceLocation(
":" +
to_string(_location.end);
return joinHumanReadable(vector<string>{sourceLocation, solidityCodeSnippet}, " ");
return sourceLocation + (solidityCodeSnippet.empty() ? "" : " ") + solidityCodeSnippet;
}
string AsmPrinter::formatDebugData(shared_ptr<DebugData const> const& _debugData, bool _statement)