Ignore:
Timestamp:
Oct 23, 2018, 7:49:00 AM (8 months ago)
Author:
cameron
Message:

Bug fix: it is a false simplification to remove empty Alt nodes!

Location:
icGREP/icgrep-devel/icgrep/re
Files:
2 edited

Legend:

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

    r6172 r6174  
    2525         are converted to NFD form (or NFKD form if the UCD::Compatible option
    2626         is used.  The options may also including case folding.  Example:
    27          UCD:NFD_Transformer(UCD::CaseFold | UCD::NFKD).transformRE(r);
     27         UCD::NFD_Transformer(UCD::CaseFold | UCD::NFKD).transformRE(r);
    2828        */
    2929        NFD_Transformer(DecompositionOptions opt = NFD);
  • icGREP/icgrep-devel/icgrep/re/re_simplifier.cpp

    r6173 r6174  
    4141        for (RE * item : *seq) {
    4242            item = transform(item);
    43             if (LLVM_UNLIKELY(isa<Vector>(item) && cast<Vector>(item)->empty())) {
     43            if (LLVM_UNLIKELY(isa<Seq>(item) && cast<Seq>(item)->empty())) {
    4444                continue;
    4545            }
Note: See TracChangeset for help on using the changeset viewer.