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
This commit is contained in:
Alkis Evlogimenos
2004-09-03 18:19:51 +00:00
parent ceca90415f
commit 20aa474f8f
14 changed files with 16 additions and 6 deletions
+2 -1
View File
@@ -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;
}