Changeset 1e8b02f5 for src


Ignore:
Timestamp:
Aug 26, 2016, 3:06:08 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
5e644d3e
Parents:
f2a4f6c
Message:

removed unnecessary clone statement in validate phase

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    rf2a4f6c r1e8b02f5  
    531531                        TypeDeclMap::const_iterator base = typedeclNames.find( typeInst->get_name() );
    532532                        assert( base != typedeclNames.end() );
    533                         typeInst->set_baseType( base->second->clone() );
     533                        typeInst->set_baseType( base->second );
    534534                } // if
    535535                return typeInst;
  • src/SynTree/ReferenceToType.cc

    rf2a4f6c r1e8b02f5  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // ReferenceToType.cc -- 
     7// ReferenceToType.cc --
    88//
    99// Author           : Richard C. Bilson
     
    3636void ReferenceToType::print( std::ostream &os, int indent ) const {
    3737        using std::endl;
    38        
     38
    3939        Type::print( os, indent );
    4040        os << "instance of " << typeString() << " " << name << " ";
     
    128128}
    129129
     130TypeInstType::~TypeInstType() {
     131        // delete baseType; //This is shared and should not be deleted
     132}
     133
    130134void TypeInstType::set_baseType( TypeDecl *newValue ) {
    131135        baseType = newValue;
     
    137141void TypeInstType::print( std::ostream &os, int indent ) const {
    138142        using std::endl;
    139        
     143
    140144        Type::print( os, indent );
    141145        os << "instance of " << typeString() << " " << get_name() << " (" << ( isFtype ? "" : "not" ) << " function type) ";
  • src/SynTree/Type.h

    rf2a4f6c r1e8b02f5  
    327327        TypeInstType( const Type::Qualifiers &tq, const std::string &name, bool isFtype );
    328328        TypeInstType( const TypeInstType &other ) : Parent( other ), baseType( other.baseType ), isFtype( other.isFtype ) {}
     329        ~TypeInstType();
    329330
    330331        TypeDecl *get_baseType() const { return baseType; }
Note: See TracChangeset for help on using the changeset viewer.