mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[Sol->Yul] Report error after Ir code
this way less scrolling is required
This commit is contained in:
parent
8edf9e4baf
commit
c5b50039d2
@ -54,7 +54,7 @@ pair<string, string> IRGenerator::run(ContractDefinition const& _contract)
|
|||||||
string errorMessage;
|
string errorMessage;
|
||||||
for (auto const& error: asmStack.errors())
|
for (auto const& error: asmStack.errors())
|
||||||
errorMessage += langutil::SourceReferenceFormatter::formatErrorInformation(*error);
|
errorMessage += langutil::SourceReferenceFormatter::formatErrorInformation(*error);
|
||||||
solAssert(false, "Invalid IR generated:\n" + errorMessage + "\n" + ir);
|
solAssert(false, ir + "\n\nInvalid IR generated:\n" + errorMessage + "\n");
|
||||||
}
|
}
|
||||||
asmStack.optimize();
|
asmStack.optimize();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user