Changeset 2f42718 for src/Tuples
- Timestamp:
- Feb 22, 2019, 10:43:29 AM (7 years ago)
- Branches:
- no_list
- Parents:
- 43e0949
- File:
-
- 1 edited
-
src/Tuples/TupleExpansion.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Tuples/TupleExpansion.cc
r43e0949 r2f42718 217 217 StructDecl * decl = typeMap[tupleSize]; 218 218 StructInstType * newType = new StructInstType( qualifiers, decl ); 219 for ( auto p : group_iterate( tupleType-> get_types(), decl->get_parameters() ) ) {219 for ( auto p : group_iterate( tupleType->types, decl->get_parameters() ) ) { 220 220 Type * t = std::get<0>(p); 221 221 newType->get_parameters().push_back( new TypeExpr( t->clone() ) ); … … 298 298 Type * makeTupleType( const std::list< Expression * > & exprs ) { 299 299 // produce the TupleType which aggregates the types of the exprs 300 std::list< Type * > types; 300 std::vector< Type * > types; 301 types.reserve(exprs.size()); 301 302 Type::Qualifiers qualifiers( Type::Const | Type::Volatile | Type::Restrict | Type::Lvalue | Type::Atomic | Type::Mutex ); 302 303 for ( Expression * expr : exprs ) {
Note:
See TracChangeset
for help on using the changeset viewer.