Changeset b9fa85b for src/AST/Pass.hpp


Ignore:
Timestamp:
Sep 10, 2020, 10:33:51 AM (21 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr
Children:
98e8b3b
Parents:
1c01c58
Message:

Should fix both trac #173 by porting the catch scoping hack to the new ast and the incompatability with older compiler intoduce in the read addition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.hpp

    r1c01c58 rb9fa85b  
    118118
    119119        // Versions of the above for older compilers.
     120        template< typename... Args >
    120121        static void run( std::list< ptr<Decl> > & decls ) {
    121122                Pass<core_t> visitor;
     
    123124        }
    124125
    125         static auto read( Node const * node ) {
     126        template< typename node_type, typename... Args >
     127        static auto read( node_type const * node ) {
    126128                Pass<core_t> visitor;
    127                 Node const * temp = node->accept( visitor );
     129                node_type const * temp = node->accept( visitor );
    128130                assert( temp == node );
    129131                return visitor.get_result();
Note: See TracChangeset for help on using the changeset viewer.