mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
AsmPrinter: Don't include whitespace after @src if there's no code snippet
This commit is contained in:
parent
d7ddfcc665
commit
a9b5835e5d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user