diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-21 22:43:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-21 22:43:03 +0000 |
commit | eaa25da8bb07af784a802013f5e270aea5ef2469 (patch) | |
tree | 7c620391551fd78462cbffa6f383ddf94e0b788e /llvm/lib/Transforms/Utils/SSAUpdater.cpp | |
parent | fff99f066b55e1388f5559d60c725b60a6913c2f (diff) | |
download | bcm5719-llvm-eaa25da8bb07af784a802013f5e270aea5ef2469.tar.gz bcm5719-llvm-eaa25da8bb07af784a802013f5e270aea5ef2469.zip |
improve indentation avoid a pointless conversion from weakvh to trackingvh,
no functionality change.
llvm-svn: 91848
Diffstat (limited to 'llvm/lib/Transforms/Utils/SSAUpdater.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SSAUpdater.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/SSAUpdater.cpp b/llvm/lib/Transforms/Utils/SSAUpdater.cpp index 729fb099f84..9881b3c2b6c 100644 --- a/llvm/lib/Transforms/Utils/SSAUpdater.cpp +++ b/llvm/lib/Transforms/Utils/SSAUpdater.cpp @@ -220,7 +220,7 @@ Value *SSAUpdater::GetValueAtEndOfBlockInternal(BasicBlock *BB) { // Query AvailableVals by doing an insertion of null. std::pair<AvailableValsTy::iterator, bool> InsertRes = - AvailableVals.insert(std::make_pair(BB, WeakVH())); + AvailableVals.insert(std::make_pair(BB, TrackingVH<Value>())); // Handle the case when the insertion fails because we have already seen BB. if (!InsertRes.second) { @@ -236,8 +236,8 @@ Value *SSAUpdater::GetValueAtEndOfBlockInternal(BasicBlock *BB) { // it. When we get back to the first instance of the recursion we will fill // in the PHI node. return InsertRes.first->second = - PHINode::Create(PrototypeValue->getType(), PrototypeValue->getName(), - &BB->front()); + PHINode::Create(PrototypeValue->getType(), PrototypeValue->getName(), + &BB->front()); } // Okay, the value isn't in the map and we just inserted a null in the entry |