Browse code

bb#10757: fix C++11 compatibility issue in LoopInfo.h

David Raynor authored on 2014/03/19 22:55:25
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Mar 19 09:55:08 EDT 2014 (dar)
2
+------------------------------------
3
+ * bb#10757: fix C++11 compatibility issue in LoopInfo.h
4
+
1 5
 Fri Mar 10 16:55:00 EDT 2014 (klin)
2 6
 ------------------------------------
3 7
  * bb#10650: fix for issues with parsing malformed icon groups in PE files.
... ...
@@ -814,8 +814,12 @@ public:
814 814
         typedef GraphTraits<Inverse<BlockT*> > InvBlockTraits;
815 815
         
816 816
         // Add all of the predecessors of X to the end of the work stack...
817
-        TodoStack.insert(TodoStack.end(), InvBlockTraits::child_begin(X),
818
-                         InvBlockTraits::child_end(X));
817
+        for (typename InvBlockTraits::ChildIteratorType PI =
818
+              InvBlockTraits::child_begin(X), PE = InvBlockTraits::child_end(X);
819
+              PI != PE; ++PI) {
820
+          typename InvBlockTraits::NodeType *N = *PI;
821
+          TodoStack.push_back(N);
822
+        }
819 823
       }
820 824
     }
821 825