summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-10-04 10:18:49 +0000
committerTobias Grosser <tobias@grosser.es>2015-10-04 10:18:49 +0000
commit5762b31df4f8f18e0863ef0647c00a8c8d94a134 (patch)
tree1091dc6eb646fbba7ba539fc74dad14aaefef1aa
parent2f1acac6103ce5637d41319034b0105c8f0e65b1 (diff)
downloadbcm5719-llvm-5762b31df4f8f18e0863ef0647c00a8c8d94a134.tar.gz
bcm5719-llvm-5762b31df4f8f18e0863ef0647c00a8c8d94a134.zip
Use AssertingVH for ValueToValue Maps
By using AssertingVH we will see assertions in case Values to which still pointers in our maps exists are deleted. This is very useful as we previously had some bugs that were caused by such stale Value pointers. llvm-svn: 249267
-rw-r--r--polly/include/polly/CodeGen/BlockGenerators.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/polly/include/polly/CodeGen/BlockGenerators.h b/polly/include/polly/CodeGen/BlockGenerators.h
index da926df875f..b8c66a752ea 100644
--- a/polly/include/polly/CodeGen/BlockGenerators.h
+++ b/polly/include/polly/CodeGen/BlockGenerators.h
@@ -67,7 +67,8 @@ public:
/// @see The ScalarMap and PHIOpMap member.
using ScalarAllocaMapTy = DenseMap<AssertingVH<Value>, AssertingVH<Value>>;
- typedef llvm::DenseMap<llvm::Value *, llvm::Value *> ValueMapT;
+ typedef llvm::DenseMap<AssertingVH<llvm::Value>, AssertingVH<llvm::Value>>
+ ValueMapT;
typedef llvm::SmallVector<ValueMapT, 8> VectorValueMapT;
/// @brief Simple vector of instructions to store escape users.
OpenPOWER on IntegriCloud