Changeset 5777


Ignore:
Timestamp:
Dec 12, 2017, 8:28:35 AM (14 months ago)
Author:
cameron
Message:

Bug fix for re_compiler when CCs directly supplied

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

Legend:

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

    r5755 r5777  
    159159        nextPos = AdvanceMarker(marker, MarkerPosition::FinalPostPositionUnit, pb);
    160160    }
    161     return makeMarker(MarkerPosition::FinalMatchUnit, pb.createAnd(markerVar(marker), pb.createAnd(mCCCompiler.compileCC(cc, pb), mAny)));
     161    return makeMarker(MarkerPosition::FinalMatchUnit, pb.createAnd(markerVar(nextPos), pb.createAnd(mCCCompiler.compileCC(cc, pb), mAny)));
    162162}
    163163
  • icGREP/icgrep-devel/icgrep/re/re_reverse.cpp

    r5763 r5777  
    1414#include <re/re_alt.h>
    1515#include <re/re_rep.h>
     16#include <re/re_group.h>
    1617#include <re/re_range.h>
    1718#include <re/re_diff.h>
     
    4748    } else if (Rep * rep = dyn_cast<Rep>(re)) {
    4849        return makeRep(reverse_helper(rep->getRE(), captureMap), rep->getLB(), rep->getUB());
     50    } else if (Group * g = dyn_cast<Group>(re)) {
     51        return makeGroup(g->getMode(), reverse_helper(g->getRE(), captureMap), g->getSense());
    4952    } else if (Diff * diff = dyn_cast<Diff>(re)) {
    5053        return makeDiff(reverse_helper(diff->getLH(), captureMap), reverse_helper(diff->getRH(), captureMap));
Note: See TracChangeset for help on using the changeset viewer.