Changeset 1cced28
- Timestamp:
- Dec 30, 2015, 9:07:10 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 784deab, b18b0b5
- Parents:
- de91427b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
rde91427b r1cced28 412 412 void Pass1::boxParam( Type *param, Expression *&arg, const TyVarMap &exprTyVars ) { 413 413 assert( ! arg->get_results().empty() ); 414 // if ( ! dynamic_cast< PointerType *>( arg->get_results().front() ) ) { 415 TypeInstType *typeInst = dynamic_cast< TypeInstType *>( param ); 416 if ( typeInst && exprTyVars.find( typeInst->get_name() ) != exprTyVars.end() ) { 414 if ( isPolyType( param, exprTyVars ) ) { 417 415 if ( dynamic_cast< TypeInstType *>( arg->get_results().front() ) ) { 418 416 // if the argument's type is a type parameter, we don't need to box again! … … 432 430 } // if 433 431 } // if 434 // }435 432 } 436 433
Note: See TracChangeset
for help on using the changeset viewer.