mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not use solAssert within libjulia
This commit is contained in:
@@ -20,9 +20,9 @@
|
||||
|
||||
#include <libjulia/optimiser/InlinableExpressionFunctionFinder.h>
|
||||
|
||||
#include <libsolidity/inlineasm/AsmData.h>
|
||||
#include <libjulia/optimiser/Utilities.h>
|
||||
|
||||
#include <libsolidity/interface/Exceptions.h>
|
||||
#include <libsolidity/inlineasm/AsmData.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace dev;
|
||||
@@ -56,7 +56,7 @@ void InlinableExpressionFunctionFinder::operator()(FunctionDefinition const& _fu
|
||||
// We cannot overwrite previous settings, because this function definition
|
||||
// would not be valid here if we were searching inside a functionally inlinable
|
||||
// function body.
|
||||
solAssert(m_disallowedIdentifiers.empty() && !m_foundDisallowedIdentifier, "");
|
||||
assertThrow(m_disallowedIdentifiers.empty() && !m_foundDisallowedIdentifier, OptimizerException, "");
|
||||
m_disallowedIdentifiers = set<string>{retVariable, _function.name};
|
||||
boost::apply_visitor(*this, *assignment.value);
|
||||
if (!m_foundDisallowedIdentifier)
|
||||
|
||||
Reference in New Issue
Block a user