mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Only use SourceReferenceFormatterHuman
This commit is contained in:
committed by
chriseth
parent
1126838a31
commit
1dedba8538
@@ -37,7 +37,7 @@
|
||||
#include <libsolutil/Whiskers.h>
|
||||
#include <libsolutil/StringUtils.h>
|
||||
|
||||
#include <liblangutil/SourceReferenceFormatter.h>
|
||||
#include <liblangutil/SourceReferenceFormatterHuman.h>
|
||||
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
|
||||
@@ -60,7 +60,7 @@ pair<string, string> IRGenerator::run(
|
||||
{
|
||||
string errorMessage;
|
||||
for (auto const& error: asmStack.errors())
|
||||
errorMessage += langutil::SourceReferenceFormatter::formatErrorInformation(*error);
|
||||
errorMessage += langutil::SourceReferenceFormatterHuman::formatErrorInformation(*error);
|
||||
solAssert(false, ir + "\n\nInvalid IR generated:\n" + errorMessage + "\n");
|
||||
}
|
||||
asmStack.optimize();
|
||||
|
||||
Reference in New Issue
Block a user