Ignore:
Timestamp:
Mar 16, 2018, 5:15:02 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
8d7bef2
Parents:
6171841
git-author:
Aaron Moss <a3moss@…> (03/16/18 17:04:24)
git-committer:
Aaron Moss <a3moss@…> (03/16/18 17:15:02)
Message:

First pass at delete removal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/TypeEnvironment.cc

    r6171841 r68f9c43  
    5959        EqvClass &EqvClass::operator=( const EqvClass &other ) {
    6060                if ( this == &other ) return *this;
    61                 delete type;
    6261                initialize( other, *this );
    6362                return *this;
    64         }
    65 
    66         EqvClass::~EqvClass() {
    67                 delete type;
    6863        }
    6964
     
    147142///         std::cerr << " bound to variable " << *theClass->vars.begin() << std::endl;
    148143                                        sub.add( *theVar, newTypeInst );
    149                                         delete newTypeInst;
    150144                                } // if
    151145                        } // for
     
    188182                                        if ( secondClass->type ) {
    189183                                                if ( newClass.type ) {
    190                                                         Type *newType = combineFunc( newClass.type, secondClass->type );
    191                                                         delete newClass.type;
    192                                                         newClass.type = newType;
     184                                                        newClass.type = combineFunc( newClass.type, secondClass->type );
    193185                                                        newClass.allowWidening = newClass.allowWidening && secondClass->allowWidening;
    194186                                                } else {
Note: See TracChangeset for help on using the changeset viewer.