mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix possibly effectless map emplace
This commit is contained in:
parent
c92d3b537d
commit
070471d8d4
@ -992,6 +992,8 @@ void SMTChecker::createExpr(Expression const& _e)
|
||||
solAssert(_e.annotation().type, "");
|
||||
if (hasExpr(_e))
|
||||
m_expressions.at(&_e)->increaseIndex();
|
||||
else
|
||||
{
|
||||
auto result = newSymbolicVariable(*_e.annotation().type, "expr_" + to_string(_e.id()), *m_interface);
|
||||
m_expressions.emplace(&_e, result.second);
|
||||
if (result.first)
|
||||
@ -1000,6 +1002,7 @@ void SMTChecker::createExpr(Expression const& _e)
|
||||
"Assertion checker does not yet implement this type."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
void SMTChecker::defineExpr(Expression const& _e, smt::Expression _value)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user