Changes in src/Tuples/TupleExpansion.cc [64ac636:94a8123]
- File:
-
- 1 edited
-
src/Tuples/TupleExpansion.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Tuples/TupleExpansion.cc
r64ac636 r94a8123 194 194 } 195 195 BasicType * boolType = new BasicType( Type::Qualifiers(), BasicType::Bool ); 196 ObjectDecl * finished = new ObjectDecl( toString( "_unq _expr_finished_", id), Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new BasicType( Type::Qualifiers(), BasicType::Bool ), new SingleInit( new ConstantExpr( Constant( boolType->clone(), "0" ) ), noDesignators ) );196 ObjectDecl * finished = new ObjectDecl( toString( "_unq", id, "_finished_" ), Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new BasicType( Type::Qualifiers(), BasicType::Bool ), new SingleInit( new ConstantExpr( Constant( boolType->clone(), "0" ) ), noDesignators ) ); 197 197 addDeclaration( finished ); 198 198 // (finished ? _unq_expr_N : (_unq_expr_N = <unqExpr->get_expr()>, finished = 1, _unq_expr_N)) … … 225 225 if ( ! typeMap.count( tupleSize ) ) { 226 226 // generate struct type to replace tuple type based on the number of components in the tuple 227 StructDecl * decl = new StructDecl( toString( "_tuple _type_", tupleSize) );227 StructDecl * decl = new StructDecl( toString( "_tuple", tupleSize, "_" ) ); 228 228 decl->set_body( true ); 229 229 for ( size_t i = 0; i < tupleSize; ++i ) {
Note:
See TracChangeset
for help on using the changeset viewer.