Get code to compile
[c11tester.git] / history.cc
index 3c000e7de06c20f2054610a96f7138db78d92745..b15169137180d884857fa5341e07ff95d27ceab3 100644 (file)
@@ -171,9 +171,9 @@ void ModelHistory::print()
                func_inst_list_mt * entry_insts = func_node->get_entry_insts();
                model_print("function %s has entry actions\n", func_node->get_func_name());
 
-               func_inst_list_mt::iterator it;
-               for (it = entry_insts->begin();it != entry_insts->end();it++) {
-                       FuncInst *inst = *it;
+               mllnode<FuncInst*>* it;
+               for (it = entry_insts->begin();it != NULL;it=it->getNext()) {
+                       FuncInst *inst = it->getVal();
                        model_print("type: %d, at: %s\n", inst->get_type(), inst->get_position());
                }