Ignore:
Timestamp:
Jul 13, 2015, 3:55:59 PM (4 years ago)
Author:
nmedfort
Message:

Made pablo compiler reenterant through alternate compile method that takes a Module parameter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/utf8_encoder.cpp

    r4660 r4665  
    2323        if (const CC * cc = dyn_cast_or_null<CC>(name->getDefinition())) {
    2424            if (cc->size() == 1) {
    25                 RE * def = rangeToUTF8(cc->front());
    26                 name->setDefinition(def);
     25                name->setDefinition(rangeToUTF8(cc->front()));
    2726            }
    2827            else if (cc->size() > 1) {
     
    3130                    alt.push_back(rangeToUTF8(i));
    3231                }
    33                 RE * def = makeAlt(alt.begin(), alt.end());
    34                 name->setDefinition(def);
     32                name->setDefinition(makeAlt(alt.begin(), alt.end()));
    3533            }
    3634        }
    3735    }
    38     nameMap.clear();
    3936    return nameMap.process(ast, ByteClass);
    4037}
Note: See TracChangeset for help on using the changeset viewer.