Ignore:
Timestamp:
Jan 25, 2015, 4:11:26 PM (5 years ago)
Author:
nmedfort
Message:

Temporary check in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pabloAST.cpp

    r4433 r4443  
    8282void PabloAST::replaceAllUsesWith(PabloAST * expr) {
    8383    assert (expr);
    84     while (!mUsers.empty()) {
    85         PabloAST * user = mUsers.pop_back_val();
     84    Users Q;
     85    Q.swap(mUsers);
     86    for (PabloAST * user : Q) {
    8687        if (isa<Statement>(user)) {
    8788            cast<Statement>(user)->replaceUsesOfWith(this, expr);
    8889        }
    8990    }
     91    Q.clear();
    9092}
    9193
Note: See TracChangeset for help on using the changeset viewer.