[Sol->Yul] Adding assertion for shift amount not being of FixedPointType.

This commit is contained in:
Djordje Mijovic 2021-02-09 17:58:49 +01:00
parent 993c8c0734
commit 9438706daf

View File

@ -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, "");