[llvm-commits] [llvm] r91848 - /llvm/trunk/lib/Transforms/Utils/SSAUpdater.cpp

Chris Lattner sabre at nondot.org
Mon Dec 21 14:43:03 PST 2009


Author: lattner
Date: Mon Dec 21 16:43:03 2009
New Revision: 91848

URL: http://llvm.org/viewvc/llvm-project?rev=91848&view=rev
Log:
improve indentation avoid a pointless conversion from weakvh to trackingvh,
no functionality change.

Modified:
    llvm/trunk/lib/Transforms/Utils/SSAUpdater.cpp

Modified: llvm/trunk/lib/Transforms/Utils/SSAUpdater.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SSAUpdater.cpp?rev=91848&r1=91847&r2=91848&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SSAUpdater.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SSAUpdater.cpp Mon Dec 21 16:43:03 2009
@@ -220,7 +220,7 @@
 
   // 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 @@
     // 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





More information about the llvm-commits mailing list