Changeset 0766399 for src/AST


Ignore:
Timestamp:
Oct 9, 2024, 5:34:36 PM (3 weeks ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
1a8b17a
Parents:
7d415b4 (diff), 16ba4897 (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:
2 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Node.hpp

    r7d415b4 r0766399  
    161161                }
    162162        }
    163         if ( ! errors.isEmpty() ) {
    164                 throw errors;
    165         }
     163        errors.throwIfNonEmpty();
    166164}
    167165
  • src/AST/Pass.impl.hpp

    r7d415b4 r0766399  
    250250        }
    251251        pass_visitor_stats.depth--;
    252         if ( !errors.isEmpty() ) { throw errors; }
     252        errors.throwIfNonEmpty();
    253253
    254254        return new_kids;
     
    287287        __pedantic_pass_assert( new_kids.size() == container.size() );
    288288        pass_visitor_stats.depth--;
    289         if ( !errors.isEmpty() ) { throw errors; }
     289        errors.throwIfNonEmpty();
    290290
    291291        return ast::__pass::resultN<container_t, node_t>{ mutated, new_kids };
     
    401401        }
    402402        pass_visitor_stats.depth--;
    403         if ( !errors.isEmpty() ) { throw errors; }
     403        errors.throwIfNonEmpty();
    404404}
    405405
Note: See TracChangeset for help on using the changeset viewer.