Ignore:
Timestamp:
Apr 21, 2023, 5:36:12 PM (2 years ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT, master
Children:
28f8f15, 6e4c44d
Parents:
2ed94a9 (diff), 699a97d (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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/CodeLocationTools.cpp

    r2ed94a9 rb110bcc  
    208208
    209209struct LeafKindVisitor : public ast::Visitor {
    210         LeafKind kind;
     210        LeafKind result;
    211211
    212212#define VISIT(node_type, return_type) \
    213213        const ast::return_type * visit( const ast::node_type * ) final { \
    214                 kind = LeafKind::node_type; \
     214                result = LeafKind::node_type; \
    215215                return nullptr; \
    216216        }
     
    222222
    223223LeafKind get_leaf_kind( ast::Node const * node ) {
    224         LeafKindVisitor visitor;
    225         node->accept( visitor );
    226         return visitor.kind;
     224        return ast::Pass<LeafKindVisitor>::read( node );
    227225}
    228226
Note: See TracChangeset for help on using the changeset viewer.