Changeset 4e2b9710 for src/SynTree


Ignore:
Timestamp:
Aug 25, 2016, 9:14:18 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
a839867
Parents:
c1c1112 (diff), 486341f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg2:software/cfa/cfa-cc

Location:
src/SynTree
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/AggregateDecl.cc

    rc1c1112 r4e2b9710  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // AggregateDecl.cc -- 
     7// AggregateDecl.cc --
    88//
    99// Author           : Richard C. Bilson
  • src/SynTree/Expression.cc

    rc1c1112 r4e2b9710  
    200200
    201201OffsetofExpr::OffsetofExpr( const OffsetofExpr &other ) :
    202         Expression( other ), type( maybeClone( other.type ) ), member( maybeClone( other.member ) ) {}
     202        Expression( other ), type( maybeClone( other.type ) ), member( other.member ) {}
    203203
    204204OffsetofExpr::~OffsetofExpr() {
    205205        delete type;
    206         delete member;
    207206}
    208207
     
    359358        assert( member );
    360359        os << std::string( indent + 2, ' ' );
     360        os << (void*)member << " ";
    361361        member->print( os, indent + 2 );
    362362        os << std::endl;
     
    385385UntypedExpr::~UntypedExpr() {
    386386        delete function;
    387         // deleteAll( args );  //TODO FIXME the arguments are leaked but they seem to be shared in some way
     387        deleteAll( args );
    388388}
    389389
  • src/SynTree/Initializer.cc

    rc1c1112 r4e2b9710  
    4343
    4444SingleInit::~SingleInit() {
     45        delete value;
    4546        deleteAll(designators);
    4647}
  • src/SynTree/TypeSubstitution.h

    rc1c1112 r4e2b9710  
    169169        TypeSubstitution sub = TypeSubstitution( formalBegin, formalEnd, actual );
    170170        for ( std::list< Declaration* >::iterator i = memberBegin; i != memberEnd; ++i ) {
    171                 Declaration *newdecl = (*i)->clone();
    172                 sub.apply( newdecl );
    173                 *out++ = newdecl;
     171                sub.apply( *i );
     172                *out++ = *i;
    174173        } // for
    175174}
Note: See TracChangeset for help on using the changeset viewer.