Ignore:
Timestamp:
Sep 26, 2017, 10:51:47 AM (21 months ago)
Author:
cameron
Message:

Some RE tidy-ups; an empty Alt is permitted and represents the set of no strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_alt.h

    r5267 r5649  
    6262RE * makeAlt(iterator begin, iterator end) {
    6363    if (LLVM_UNLIKELY(std::distance(begin, end) == 0)) {
    64         throw std::runtime_error("Alt objects cannot be empty!");
     64        return makeAlt();
    6565    } else if (std::distance(begin, end) == 1) {
    6666        return *begin;
Note: See TracChangeset for help on using the changeset viewer.