From 9974bf8911a94038824238fd7e1b9a446d73a3d8 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 11 Jan 2012 23:43:34 +0000 Subject: [PATCH] Revert r147978. A DenseMap's iterators may become invalidated here. llvm-svn: 147980 --- lib/Analysis/LazyValueInfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Analysis/LazyValueInfo.cpp b/lib/Analysis/LazyValueInfo.cpp index 540a73bcb2f..d27d9116103 100644 --- a/lib/Analysis/LazyValueInfo.cpp +++ b/lib/Analysis/LazyValueInfo.cpp @@ -29,6 +29,7 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/STLExtras.h" +#include #include using namespace llvm; @@ -359,7 +360,7 @@ namespace { /// ValueCacheEntryTy - This is all of the cached block information for /// exactly one Value*. The entries are sorted by the BasicBlock* of the /// entries, allowing us to do a lookup with a binary search. - typedef DenseMap, LVILatticeVal> ValueCacheEntryTy; + typedef std::map, LVILatticeVal> ValueCacheEntryTy; /// ValueCache - This is all of the cached information for all values, /// mapped from Value* to key information.