mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[Sol->Yul] Adding assertion for shift amount not being of FixedPointType.
This commit is contained in:
parent
993c8c0734
commit
9438706daf
@ -2749,6 +2749,10 @@ std::string IRGeneratorForStatements::shiftOperation(
|
||||
IRVariable const& _amountToShift
|
||||
)
|
||||
{
|
||||
solUnimplementedAssert(
|
||||
_amountToShift.type().category() != Type::Category::FixedPoint,
|
||||
"Not yet implemented - FixedPointType."
|
||||
);
|
||||
IntegerType const* amountType = dynamic_cast<IntegerType const*>(&_amountToShift.type());
|
||||
solAssert(amountType, "");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user