Changeset 0b73f0c for src/GenPoly


Ignore:
Timestamp:
Jun 7, 2019, 12:00:12 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
9151fcb
Parents:
f46bfd2f
Message:

More progress on the conversion pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Lvalue.cc

    rf46bfd2f r0b73f0c  
    196196                                unsigned int i = 0;
    197197                                const unsigned int end = ftype->parameters.size();
     198
     199                                /// The for loop may eagerly dereference the iterators and fail on empty lists
     200                                if(i == end) { return appExpr; }
    198201                                for ( auto p : unsafe_group_iterate( appExpr->args, ftype->parameters ) ) {
    199202                                        if (i == end) break;
Note: See TracChangeset for help on using the changeset viewer.