Using auto to avoid type name duplication.

This commit is contained in:
Djordje Mijovic 2020-11-25 14:15:51 +01:00
parent 565d0cd4eb
commit 26d454d8a8

View File

@ -941,8 +941,8 @@ void CompilerUtils::convertType(
case Type::Category::Array:
{
solAssert(targetTypeCategory == stackTypeCategory, "");
ArrayType const& typeOnStack = dynamic_cast<ArrayType const&>(_typeOnStack);
ArrayType const& targetType = dynamic_cast<ArrayType const&>(_targetType);
auto const& typeOnStack = dynamic_cast<ArrayType const&>(_typeOnStack);
auto const& targetType = dynamic_cast<ArrayType const&>(_targetType);
switch (targetType.location())
{
case DataLocation::Storage: