Changeset 16ba4897 for src/ResolvExpr


Ignore:
Timestamp:
Oct 9, 2024, 5:07:59 PM (7 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
0766399
Parents:
1b770e40
Message:

Replaced SemanticErrorException::isEmpty with ...::throwIfNonEmpty. This is how it was used in every context and it saves a bit of text (if not two lines) at every use. I considered putting this function in the header for better inlining, but this should have at least the same preformance as the last version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/ResolvExpr/CandidateFinder.cpp

    r1b770e40 r16ba4897  
    11151115                // Implement SFINAE; resolution errors are only errors if there aren't any non-error
    11161116                // candidates
    1117                 if ( found.empty() && ! errors.isEmpty() ) { throw errors; }
     1117                if ( found.empty() ) errors.throwIfNonEmpty();
    11181118
    11191119                // only keep the best matching intrinsic result to match C semantics (no unexpected narrowing/widening)
Note: See TracChangeset for help on using the changeset viewer.