[llvm-commits] [llvm] r70882 - /llvm/trunk/lib/VMCore/Value.cpp

Dan Gohman gohman at apple.com
Mon May 4 10:25:21 PDT 2009


Author: djg
Date: Mon May  4 12:25:21 2009
New Revision: 70882

URL: http://llvm.org/viewvc/llvm-project?rev=70882&view=rev
Log:
Use true instead of 1 for a boolean value. And fix a copy+pasto
in a comment.

Modified:
    llvm/trunk/lib/VMCore/Value.cpp

Modified: llvm/trunk/lib/VMCore/Value.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Value.cpp?rev=70882&r1=70881&r2=70882&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/Value.cpp (original)
+++ llvm/trunk/lib/VMCore/Value.cpp Mon May  4 12:25:21 2009
@@ -406,8 +406,8 @@
 typedef DenseMap<Value*, ValueHandleBase*> ValueHandlesTy;
 static ManagedStatic<ValueHandlesTy> ValueHandles;
 
-/// AddToUseList - Add this ValueHandle to the use list for VP, where List is
-/// known to point into the existing use list.
+/// AddToExistingUseList - Add this ValueHandle to the use list for VP, where
+/// List is known to point into the existing use list.
 void ValueHandleBase::AddToExistingUseList(ValueHandleBase **List) {
   assert(List && "Handle list is null?");
   
@@ -443,7 +443,7 @@
   ValueHandleBase *&Entry = Handles[VP];
   assert(Entry == 0 && "Value really did already have handles?");
   AddToExistingUseList(&Entry);
-  VP->HasValueHandle = 1;
+  VP->HasValueHandle = true;
   
   // If reallocation didn't happen or if this was the first insertion, don't
   // walk the table.





More information about the llvm-commits mailing list