mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use block hashes in EquivalentFunctionDetector.
This commit is contained in:
@@ -85,3 +85,9 @@ bool Less<Literal>::operator()(Literal const& _lhs, Literal const& _rhs) const
|
||||
else
|
||||
return _lhs.value < _rhs.value;
|
||||
}
|
||||
|
||||
bool SwitchCaseCompareByLiteralValue::operator()(Case const* _lhs, Case const* _rhs) const
|
||||
{
|
||||
yulAssert(_lhs && _rhs, "");
|
||||
return Less<Literal*>{}(_lhs->value.get(), _rhs->value.get());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user