summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/AssumptionCache.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2017-05-01 17:07:49 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2017-05-01 17:07:49 +0000
commite6bca0eecbd31d9dd65040b212326330c9cf2655 (patch)
tree3c31531a3f71ae4353cecb5d65ba544283be0a39 /llvm/lib/Analysis/AssumptionCache.cpp
parent2fa360483122f119070b272d93d858befc86cbf6 (diff)
downloadbcm5719-llvm-e6bca0eecbd31d9dd65040b212326330c9cf2655.tar.gz
bcm5719-llvm-e6bca0eecbd31d9dd65040b212326330c9cf2655.zip
Rename WeakVH to WeakTrackingVH; NFC
This relands r301424. llvm-svn: 301812
Diffstat (limited to 'llvm/lib/Analysis/AssumptionCache.cpp')
-rw-r--r--llvm/lib/Analysis/AssumptionCache.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/AssumptionCache.cpp b/llvm/lib/Analysis/AssumptionCache.cpp
index 1fae9472448..0468c794e81 100644
--- a/llvm/lib/Analysis/AssumptionCache.cpp
+++ b/llvm/lib/Analysis/AssumptionCache.cpp
@@ -29,15 +29,16 @@ static cl::opt<bool>
cl::desc("Enable verification of assumption cache"),
cl::init(false));
-SmallVector<WeakVH, 1> &AssumptionCache::getOrInsertAffectedValues(Value *V) {
+SmallVector<WeakTrackingVH, 1> &
+AssumptionCache::getOrInsertAffectedValues(Value *V) {
// Try using find_as first to avoid creating extra value handles just for the
// purpose of doing the lookup.
auto AVI = AffectedValues.find_as(V);
if (AVI != AffectedValues.end())
return AVI->second;
- auto AVIP = AffectedValues.insert({
- AffectedValueCallbackVH(V, this), SmallVector<WeakVH, 1>()});
+ auto AVIP = AffectedValues.insert(
+ {AffectedValueCallbackVH(V, this), SmallVector<WeakTrackingVH, 1>()});
return AVIP.first->second;
}
OpenPOWER on IntegriCloud