Changeset 164a6b6 for src/AST/Pass.hpp


Ignore:
Timestamp:
May 6, 2024, 9:09:07 AM (2 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
69dd8e6, c333ed2
Parents:
d69f7114
Message:

Simplified the visit_children feature of Pass template. This should also fix a warning in g++-13.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.hpp

    rd69f7114 r164a6b6  
    233233private:
    234234
    235         bool __visit_children() { __pass::bool_ref * ptr = __pass::visit_children(core, 0); return ptr ? *ptr : true; }
     235        bool __visit_children() { bool * ptr = __pass::visit_children(core, 0); return ptr ? *ptr : true; }
    236236
    237237private:
     
    342342/// set visit_children false of all child nodes should be ignored
    343343struct WithShortCircuiting {
    344         __pass::bool_ref visit_children;
     344        bool visit_children;
    345345};
    346346
Note: See TracChangeset for help on using the changeset viewer.