Changeset 8e9d567 for src/AST


Ignore:
Timestamp:
Aug 19, 2020, 2:09:04 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
03a4c73
Parents:
133a161 (diff), 13d33a75 (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 plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
src/AST
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Convert.cpp

    r133a161 r8e9d567  
    167167                        LinkageSpec::Spec( node->linkage.val ),
    168168                        bfwd,
    169                         type,
     169                        type->clone(),
    170170                        init,
    171171                        attr,
  • src/AST/Print.cpp

    r133a161 r8e9d567  
    237237        void postprint( const ast::Expr * node ) {
    238238                print( node->inferred );
     239
     240                if ( node->result ) {
     241                        os << endl << indent << "... with resolved type:" << endl;
     242                        ++indent;
     243                        os << indent;
     244                        node->result->accept( *this );
     245                        --indent;
     246                }
    239247
    240248                if ( node->env ) {
  • src/AST/TypeSubstitution.hpp

    r133a161 r8e9d567  
    195195        assert( input );
    196196        Pass<Substituter> sub( *this, true );
    197         input = strict_dynamic_cast< const SynTreeClass * >( input->accept( sub ) );
     197        input = strict_dynamic_cast< const SynTreeClass * >( deepCopy(input)->accept( sub ) );
    198198        return { input, sub.core.subCount };
    199199}
Note: See TracChangeset for help on using the changeset viewer.