[llvm-commits] [llvm] r147980 - /llvm/trunk/lib/Analysis/LazyValueInfo.cpp

Bill Wendling isanbard at gmail.com
Wed Jan 11 15:43:35 PST 2012


Author: void
Date: Wed Jan 11 17:43:34 2012
New Revision: 147980

URL: http://llvm.org/viewvc/llvm-project?rev=147980&view=rev
Log:
Revert r147978. A DenseMap's iterators may become invalidated here.

Modified:
    llvm/trunk/lib/Analysis/LazyValueInfo.cpp

Modified: llvm/trunk/lib/Analysis/LazyValueInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LazyValueInfo.cpp?rev=147980&r1=147979&r2=147980&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LazyValueInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/LazyValueInfo.cpp Wed Jan 11 17:43:34 2012
@@ -29,6 +29,7 @@
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/DenseSet.h"
 #include "llvm/ADT/STLExtras.h"
+#include <map>
 #include <stack>
 using namespace llvm;
 
@@ -359,7 +360,7 @@
     /// 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<AssertingVH<BasicBlock>, LVILatticeVal> ValueCacheEntryTy;
+    typedef std::map<AssertingVH<BasicBlock>, LVILatticeVal> ValueCacheEntryTy;
 
     /// ValueCache - This is all of the cached information for all values,
     /// mapped from Value* to key information.





More information about the llvm-commits mailing list