Changes in src/GenPoly/Box.cc [1cced28:b18b0b5]
- File:
-
- 1 edited
-
src/GenPoly/Box.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
r1cced28 rb18b0b5 492 492 assert( arg ); 493 493 if ( isPolyType( realParam->get_type(), tyVars ) ) { 494 // if ( dynamic_cast< PointerType *>( arg->get_type() ) ) {495 // return new CastExpr( new VariableExpr( param ), arg->get_type()->clone() );496 // } else {497 494 if ( dynamic_cast<TypeInstType *>(arg->get_type()) == NULL ) { 498 495 UntypedExpr *deref = new UntypedExpr( new NameExpr( "*?" ) ); … … 501 498 return deref; 502 499 } // if 503 // }504 500 } // if 505 501 return new VariableExpr( param ); … … 1036 1032 1037 1033 // add size/align for generic types to parameter list 1038 std::set< std::string > seenTypes; // <sizeofName for generic types we've seen1034 std::set< std::string > seenTypes; // sizeofName for generic types we've seen 1039 1035 for ( std::list< DeclarationWithType* >::const_iterator fnParm = last; fnParm != funcType->get_parameters().end(); ++fnParm ) { 1040 1036 Type *parmType = (*fnParm)->get_type();
Note:
See TracChangeset
for help on using the changeset viewer.