Merge pull request #10927 from ethereum/fixedPointAssertionSol2Yul

This commit is contained in:
Đorđe Mijović 2021-02-09 19:14:09 +01:00 committed by GitHub
commit 30857493ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2749,6 +2749,10 @@ std::string IRGeneratorForStatements::shiftOperation(
IRVariable const& _amountToShift IRVariable const& _amountToShift
) )
{ {
solUnimplementedAssert(
_amountToShift.type().category() != Type::Category::FixedPoint,
"Not yet implemented - FixedPointType."
);
IntegerType const* amountType = dynamic_cast<IntegerType const*>(&_amountToShift.type()); IntegerType const* amountType = dynamic_cast<IntegerType const*>(&_amountToShift.type());
solAssert(amountType, ""); solAssert(amountType, "");