Changes in src/GenPoly/GenPoly.cc [8d7bef2:5f61546]
- File:
-
- 1 edited
-
src/GenPoly/GenPoly.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/GenPoly.cc
r8d7bef2 r5f61546 100 100 if ( dynamic_cast< TypeInstType * >( type ) ) { 101 101 return type; 102 } else if ( ArrayType * arrayType = dynamic_cast< ArrayType * >( type ) ) { 103 return isPolyType( arrayType->base, env ); 102 104 } else if ( StructInstType *structType = dynamic_cast< StructInstType* >( type ) ) { 103 105 if ( hasPolyParams( structType->get_parameters(), env ) ) return type; … … 115 117 return type; 116 118 } 119 } else if ( ArrayType * arrayType = dynamic_cast< ArrayType * >( type ) ) { 120 return isPolyType( arrayType->base, tyVars, env ); 117 121 } else if ( StructInstType *structType = dynamic_cast< StructInstType* >( type ) ) { 118 122 if ( hasPolyParams( structType->get_parameters(), tyVars, env ) ) return type; … … 437 441 Type * newType = arg->clone(); 438 442 if ( env ) env->apply( newType ); 443 std::unique_ptr<Type> manager( newType ); 439 444 // if the argument's type is polymorphic, we don't need to box again! 440 445 return ! isPolyType( newType );
Note:
See TracChangeset
for help on using the changeset viewer.