Changes in src/GenPoly/Box.cc [974906e2:1cced28]
- File:
-
- 1 edited
-
src/GenPoly/Box.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
r974906e2 r1cced28 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Thu Jan 07 13:40:05 201613 // Update Count : 21 912 // Last Modified On : Fri Dec 18 14:53:08 2015 13 // Update Count : 217 14 14 // 15 15 … … 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 … … 1142 1139 1143 1140 std::list<Expression*> designators; 1144 objectDecl->set_init( new SingleInit( alloc, designators , false ) ); // not constructed1141 objectDecl->set_init( new SingleInit( alloc, designators ) ); 1145 1142 } 1146 1143 }
Note:
See TracChangeset
for help on using the changeset viewer.