Fixes to make LLVM compile with vc7.1.
Patch contributed by Paolo Invernizzi!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16152 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/IntervalPartition.cpp b/lib/Analysis/IntervalPartition.cpp
index 9253f72..4f178f4 100644
--- a/lib/Analysis/IntervalPartition.cpp
+++ b/lib/Analysis/IntervalPartition.cpp
@@ -14,6 +14,7 @@
#include "llvm/Analysis/IntervalIterator.h"
#include "llvm/ADT/STLExtras.h"
+#include <algorithm>
namespace llvm {
@@ -26,7 +27,7 @@
// destroy - Reset state back to before function was analyzed
void IntervalPartition::destroy() {
- for_each(Intervals.begin(), Intervals.end(), deleter<Interval>);
+ std::for_each(Intervals.begin(), Intervals.end(), deleter<Interval>);
IntervalMap.clear();
RootInterval = 0;
}