summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IntervalPartition.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-09-03 18:19:51 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-09-03 18:19:51 +0000
commita5c04ee50f20861dd132aacdaf6f196d1cae0863 (patch)
tree14edcdcb8ac10338aa7316ac2233b7152abf44e1 /llvm/lib/Analysis/IntervalPartition.cpp
parentcb46e669831f85ad10502dfdaa086369dd92b959 (diff)
downloadbcm5719-llvm-a5c04ee50f20861dd132aacdaf6f196d1cae0863.tar.gz
bcm5719-llvm-a5c04ee50f20861dd132aacdaf6f196d1cae0863.zip
Fixes to make LLVM compile with vc7.1.
Patch contributed by Paolo Invernizzi! llvm-svn: 16152
Diffstat (limited to 'llvm/lib/Analysis/IntervalPartition.cpp')
-rw-r--r--llvm/lib/Analysis/IntervalPartition.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IntervalPartition.cpp b/llvm/lib/Analysis/IntervalPartition.cpp
index 9253f721ab1..4f178f4f64f 100644
--- a/llvm/lib/Analysis/IntervalPartition.cpp
+++ b/llvm/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 @@ X("intervals", "Interval Partition Construction", true);
// 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;
}
OpenPOWER on IntegriCloud