summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/CallGraphSCCPass.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/CallGraphSCCPass.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/CallGraphSCCPass.cpp')
-rw-r--r--llvm/lib/Analysis/CallGraphSCCPass.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/CallGraphSCCPass.cpp b/llvm/lib/Analysis/CallGraphSCCPass.cpp
index ea70f5752c6..8058e5b1935 100644
--- a/llvm/lib/Analysis/CallGraphSCCPass.cpp
+++ b/llvm/lib/Analysis/CallGraphSCCPass.cpp
@@ -204,7 +204,7 @@ bool CGPassManager::RefreshCallGraph(const CallGraphSCC &CurSCC, CallGraph &CG,
// Get the set of call sites currently in the function.
for (CallGraphNode::iterator I = CGN->begin(), E = CGN->end(); I != E; ) {
// If this call site is null, then the function pass deleted the call
- // entirely and the WeakVH nulled it out.
+ // entirely and the WeakTrackingVH nulled it out.
if (!I->first ||
// If we've already seen this call site, then the FunctionPass RAUW'd
// one call with another, which resulted in two "uses" in the edge
@@ -347,7 +347,8 @@ bool CGPassManager::RefreshCallGraph(const CallGraphSCC &CurSCC, CallGraph &CG,
DevirtualizedCall = true;
// After scanning this function, if we still have entries in callsites, then
- // they are dangling pointers. WeakVH should save us for this, so abort if
+ // they are dangling pointers. WeakTrackingVH should save us for this, so
+ // abort if
// this happens.
assert(CallSites.empty() && "Dangling pointers found in call sites map");
OpenPOWER on IntegriCloud