mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Improve the Error class with a constructor for secondaryLocation
Remove occurances of Error construction using the boost helpers.
This commit is contained in:
@@ -715,8 +715,11 @@ LinkerObject const& Assembly::assemble() const
|
||||
|
||||
if (!immutableReferencesBySub.empty())
|
||||
throw
|
||||
langutil::Error(1284_error, langutil::Error::Type::CodeGenerationError) <<
|
||||
util::errinfo_comment("Some immutables were read from but never assigned, possibly because of optimization.");
|
||||
langutil::Error(
|
||||
1284_error,
|
||||
langutil::Error::Type::CodeGenerationError,
|
||||
"Some immutables were read from but never assigned, possibly because of optimization."
|
||||
);
|
||||
|
||||
if (!m_subs.empty() || !m_data.empty() || !m_auxiliaryData.empty())
|
||||
// Append an INVALID here to help tests find miscompilation.
|
||||
|
||||
Reference in New Issue
Block a user