Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/GenPoly.cc

    r5f61546 r8d7bef2  
    100100                if ( dynamic_cast< TypeInstType * >( type ) ) {
    101101                        return type;
    102                 } else if ( ArrayType * arrayType = dynamic_cast< ArrayType * >( type ) ) {
    103                         return isPolyType( arrayType->base, env );
    104102                } else if ( StructInstType *structType = dynamic_cast< StructInstType* >( type ) ) {
    105103                        if ( hasPolyParams( structType->get_parameters(), env ) ) return type;
     
    117115                                return type;
    118116                        }
    119                 } else if ( ArrayType * arrayType = dynamic_cast< ArrayType * >( type ) ) {
    120                         return isPolyType( arrayType->base, tyVars, env );
    121117                } else if ( StructInstType *structType = dynamic_cast< StructInstType* >( type ) ) {
    122118                        if ( hasPolyParams( structType->get_parameters(), tyVars, env ) ) return type;
     
    441437                Type * newType = arg->clone();
    442438                if ( env ) env->apply( newType );
    443                 std::unique_ptr<Type> manager( newType );
    444439                // if the argument's type is polymorphic, we don't need to box again!
    445440                return ! isPolyType( newType );
Note: See TracChangeset for help on using the changeset viewer.