Changeset 68f9c43 for src/ResolvExpr/TypeEnvironment.cc
- Timestamp:
- Mar 16, 2018, 5:15:02 PM (6 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/TypeEnvironment.cc
r6171841 r68f9c43 59 59 EqvClass &EqvClass::operator=( const EqvClass &other ) { 60 60 if ( this == &other ) return *this; 61 delete type;62 61 initialize( other, *this ); 63 62 return *this; 64 }65 66 EqvClass::~EqvClass() {67 delete type;68 63 } 69 64 … … 147 142 /// std::cerr << " bound to variable " << *theClass->vars.begin() << std::endl; 148 143 sub.add( *theVar, newTypeInst ); 149 delete newTypeInst;150 144 } // if 151 145 } // for … … 188 182 if ( secondClass->type ) { 189 183 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 ); 193 185 newClass.allowWidening = newClass.allowWidening && secondClass->allowWidening; 194 186 } else {
Note: See TracChangeset
for help on using the changeset viewer.