Ignore:
Timestamp:
Nov 3, 2017, 10:47:20 AM (2 years ago)
Author:
cameron
Message:

hasAssertion predicate, fix to simplifier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_simplifier.cpp

    r5630 r5723  
    2121            for (RE * item : *alt) {
    2222                item = simplify(item);
    23                 if (LLVM_UNLIKELY(isa<Vector>(item) && cast<Vector>(item)->empty())) {
     23                if (LLVM_UNLIKELY(isa<Alt>(item) && cast<Alt>(item)->empty())) {
    2424                    continue;
    2525                }
     
    3232            for (RE * item : *seq) {
    3333                item = simplify(item);
    34                 if (LLVM_UNLIKELY(isa<Vector>(item) && cast<Vector>(item)->empty())) {
     34                if (LLVM_UNLIKELY(isa<Seq>(item) && cast<Seq>(item)->empty())) {
    3535                    continue;
    3636                }
Note: See TracChangeset for help on using the changeset viewer.