summaryrefslogtreecommitdiff
path: root/test/rlparse.d/reducer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/rlparse.d/reducer.cc')
-rw-r--r--test/rlparse.d/reducer.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/rlparse.d/reducer.cc b/test/rlparse.d/reducer.cc
index d22b6622..b3bd32ba 100644
--- a/test/rlparse.d/reducer.cc
+++ b/test/rlparse.d/reducer.cc
@@ -248,8 +248,9 @@ void TopLevel::loadImport( std::string fileName )
return;
}
- while ( !ImportList.end() ) {
- import Import = ImportList.value();
+ RepeatIter<_repeat_import, import> ImportIter( ImportList );
+ while ( !ImportIter.end() ) {
+ import Import = ImportIter.value();
InputLoc loc = Import.loc();
string name = Import.Name().text();
@@ -292,7 +293,7 @@ void TopLevel::loadImport( std::string fileName )
tryMachineDef( loc, name, machineDef, false );
machineDef->join->loc = loc;
- ImportList = ImportList.next();
+ ImportIter.next();
}
id->streamFileNames.append( colm_extract_fns( program ) );