Changes in src/GenPoly/Box.cc [1cced28:974906e2]
- File:
-
- 1 edited
-
src/GenPoly/Box.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
r1cced28 r974906e2 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Fri Dec 18 14:53:08 201513 // Update Count : 21 712 // Last Modified On : Thu Jan 07 13:40:05 2016 13 // Update Count : 219 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 ( isPolyType( param, exprTyVars ) ) { 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() ) { 415 417 if ( dynamic_cast< TypeInstType *>( arg->get_results().front() ) ) { 416 418 // if the argument's type is a type parameter, we don't need to box again! … … 430 432 } // if 431 433 } // if 434 // } 432 435 } 433 436 … … 1139 1142 1140 1143 std::list<Expression*> designators; 1141 objectDecl->set_init( new SingleInit( alloc, designators ) );1144 objectDecl->set_init( new SingleInit( alloc, designators, false ) ); // not constructed 1142 1145 } 1143 1146 }
Note:
See TracChangeset
for help on using the changeset viewer.