summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/CallGraphSCCPass.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2017-04-26 16:37:05 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2017-04-26 16:37:05 +0000
commit2cbeb00f3842042accf64fcfc58be6ea3eba42fc (patch)
treec5a2da1f4f0a3ad6e499a9e825380f854601ad32 /llvm/lib/Analysis/CallGraphSCCPass.cpp
parent9eed0bee3dcda9978ffad6df3e4af1db7d3ffab0 (diff)
downloadbcm5719-llvm-2cbeb00f3842042accf64fcfc58be6ea3eba42fc.tar.gz
bcm5719-llvm-2cbeb00f3842042accf64fcfc58be6ea3eba42fc.zip
Reverts commit r301424, r301425 and r301426
Commits were: "Use WeakVH instead of WeakTrackingVH in AliasSetTracker's UnkownInsts" "Add a new WeakVH value handle; NFC" "Rename WeakVH to WeakTrackingVH; NFC" The changes assumed pointers are 8 byte aligned on all architectures. llvm-svn: 301429
Diffstat (limited to 'llvm/lib/Analysis/CallGraphSCCPass.cpp')
-rw-r--r--llvm/lib/Analysis/CallGraphSCCPass.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/CallGraphSCCPass.cpp b/llvm/lib/Analysis/CallGraphSCCPass.cpp
index fc045048ec8..ea70f5752c6 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 WeakTrackingVH nulled it out.
+ // entirely and the WeakVH 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
@@ -345,10 +345,10 @@ bool CGPassManager::RefreshCallGraph(const CallGraphSCC &CurSCC, CallGraph &CG,
if (NumIndirectRemoved > NumIndirectAdded &&
NumDirectRemoved < NumDirectAdded)
DevirtualizedCall = true;
-
+
// After scanning this function, if we still have entries in callsites, then
- // they are dangling pointers. WeakTrackingVH should save us for this, so
- // abort if this happens.
+ // they are dangling pointers. WeakVH should save us for this, so abort if
+ // this happens.
assert(CallSites.empty() && "Dangling pointers found in call sites map");
// Periodically do an explicit clear to remove tombstones when processing
OpenPOWER on IntegriCloud