[RS4GC] Use AssertingVH for RematerializedValueMapTy, NFCI
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 7 Oct 2015 21:32:35 +0000 (21:32 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 7 Oct 2015 21:32:35 +0000 (21:32 +0000)
Reviewers: reames, swaroop.sridhar

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D13489

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249620 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

index e107ec58c2dec2f4e406033bb36b61835f814ad8..53cf35640153b5528a384bd3513fb6996bc2ab3b 100644 (file)
@@ -159,7 +159,8 @@ struct GCPtrLivenessData {
 // types, then update all the second type to the first type
 typedef DenseMap<Value *, Value *> DefiningValueMapTy;
 typedef DenseSet<Value *> StatepointLiveSetTy;
-typedef DenseMap<Instruction *, Value *> RematerializedValueMapTy;
+typedef DenseMap<AssertingVH<Instruction>, AssertingVH<Value>>
+  RematerializedValueMapTy;
 
 struct PartiallyConstructedSafepointRecord {
   /// The set of values known to be live across this safepoint