Changes in / [fae2cf8:9ff8310]


Ignore:
Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/GenType.cc

    rfae2cf8 r9ff8310  
    237237        void GenType::visit( TupleType * tupleType ) {
    238238                assertf( ! genC, "Tuple types should not reach code generation." );
     239                Visitor::visit( tupleType );
    239240                unsigned int i = 0;
    240241                std::ostringstream os;
     
    244245                        os << genType( t, "", pretty, genC, lineMarks ) << (i == tupleType->size() ? "" : ", ");
    245246                }
    246                 os << "] ";
     247                os << "]";
    247248                typeString = os.str() + typeString;
    248249        }
  • src/InitTweak/FixInit.cc

    rfae2cf8 r9ff8310  
    619619
    620620                Expression * FixCopyCtors::mutate( StmtExpr * stmtExpr ) {
    621                         // function call temporaries should be placed at statement-level, rather than nested inside of a new statement expression,
    622                         // since temporaries can be shared across sub-expressions, e.g.
    623                         //   [A, A] f();
    624                         //   g([A] x, [A] y);
    625                         //   f(g());
    626                         // f is executed once, so the return temporary is shared across the tuple constructors for x and y.
    627                         std::list< Statement * > & stmts = stmtExpr->get_statements()->get_kids();
    628                         for ( Statement *& stmt : stmts ) {
    629                                 stmt = stmt->acceptMutator( *this );
    630                         } // for
    631                         // stmtExpr = safe_dynamic_cast< StmtExpr * >( Parent::mutate( stmtExpr ) );
     621                        stmtExpr = safe_dynamic_cast< StmtExpr * >( Parent::mutate( stmtExpr ) );
    632622                        assert( stmtExpr->get_result() );
    633623                        Type * result = stmtExpr->get_result();
Note: See TracChangeset for help on using the changeset viewer.