Ignore:
Timestamp:
Jul 12, 2017, 12:50:47 PM (2 years ago)
Author:
cameron
Message:

Fix for longstanding bug plus test case

File:
1 edited

Legend:

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

    r5561 r5563  
    7474void RE_Compiler::compile(RE * re) {
    7575    MarkerType match_results = compile(re, mPB);
     76    PabloAST * match_post = markerVar(AdvanceMarker(match_results, MarkerPosition::FinalPostPositionUnit, mPB));
    7677    Var * const output = mKernel->getOutputStreamVar("matches");
    77     mPB.createAssign(mPB.createExtract(output, mPB.getInteger(0)), markerVar(match_results));
     78   
     79    mPB.createAssign(mPB.createExtract(output, mPB.getInteger(0)), match_post);
    7880}
    7981   
Note: See TracChangeset for help on using the changeset viewer.