summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/Local.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/Transforms/Utils/Local.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/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 364b33d3c4e..ce6b703f352 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -562,7 +562,7 @@ void llvm::RemovePredecessorAndSimplify(BasicBlock *BB, BasicBlock *Pred) {
// that can be removed.
BB->removePredecessor(Pred, true);
- WeakVH PhiIt = &BB->front();
+ WeakTrackingVH PhiIt = &BB->front();
while (PHINode *PN = dyn_cast<PHINode>(PhiIt)) {
PhiIt = &*++BasicBlock::iterator(cast<Instruction>(PhiIt));
Value *OldPhiIt = PhiIt;
@@ -1476,7 +1476,7 @@ BasicBlock *llvm::changeToInvokeAndSplitBasicBlock(CallInst *CI,
II->setAttributes(CI->getAttributes());
// Make sure that anything using the call now uses the invoke! This also
- // updates the CallGraph if present, because it uses a WeakVH.
+ // updates the CallGraph if present, because it uses a WeakTrackingVH.
CI->replaceAllUsesWith(II);
// Delete the original call
OpenPOWER on IntegriCloud