Ignore:
Timestamp:
Jan 29, 2019, 4:30:46 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
no_list
Children:
8d25360
Parents:
bee0694
Message:

Changed std::list<Initializer> to vector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    rbee0694 rbbbc067  
    12261226                        TupleType * tupleType = strict_dynamic_cast< TupleType * >( ResolvExpr::extractResultType( ftype ) );
    12271227                        // ensure return value is not destructed by explicitly creating an empty ListInit node wherein maybeConstruct is false.
    1228                         ObjectDecl * newRet = new ObjectDecl( "", Type::StorageClasses(), LinkageSpec::Cforall, 0, tupleType, new ListInit( std::list<Initializer*>(), noDesignators, false ) );
     1228                        ObjectDecl * newRet = new ObjectDecl( "", Type::StorageClasses(), LinkageSpec::Cforall, 0, tupleType, new ListInit( std::vector< Initializer * >(), noDesignators, false ) );
    12291229                        deleteAll( retVals );
    12301230                        retVals.clear();
Note: See TracChangeset for help on using the changeset viewer.