Changeset 7a8f62c3


Ignore:
Timestamp:
Sep 14, 2020, 5:51:05 PM (13 months ago)
Author:
Fangren Yu <f37yu@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
1def117b
Parents:
4c868cb2
Message:

reverted because some templates seem to not work

This reverts commit 4c868cb2d605f52664207c4a1a18ed9f041e2057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.impl.hpp

    r4c868cb2 r7a8f62c3  
    6767                }
    6868
    69                 /// mutate should NEVER create new decl since it risks invalidating weak refs
    70                 /// called by visit template with correct type information so static type checking should suffice
    7169                template< typename core_t, typename node_t >
    7270                static inline node_t* mutate(const node_t *node) {
    73                         // force copying non-decl nodes as a pure function
    74                         return std::is_base_of<PureVisitor, core_t>::value && !std::is_base_of<ast::Decl, node_t>::value
    75                         ? ::ast::shallowCopy(node) : ::ast::mutate(node);
     71                        return std::is_base_of<PureVisitor, core_t>::value ? ::ast::shallowCopy(node) : ::ast::mutate(node);
    7672                }
    7773
Note: See TracChangeset for help on using the changeset viewer.