[llvm-commits] [llvm] r91617 - /llvm/trunk/include/llvm/ADT/SmallVector.h

Steve Naroff snaroff at apple.com
Thu Dec 17 12:39:34 PST 2009


Author: snaroff
Date: Thu Dec 17 14:39:34 2009
New Revision: 91617

URL: http://llvm.org/viewvc/llvm-project?rev=91617&view=rev
Log:
Fix Windows build breakage...

Modified:
    llvm/trunk/include/llvm/ADT/SmallVector.h

Modified: llvm/trunk/include/llvm/ADT/SmallVector.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SmallVector.h?rev=91617&r1=91616&r2=91617&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallVector.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallVector.h Thu Dec 17 14:39:34 2009
@@ -209,7 +209,7 @@
   T *NewElts = static_cast<T*>(operator new(NewCapacity*sizeof(T)));
   
   // Copy the elements over.
-  uninitialized_copy(this->begin(), this->end(), NewElts);
+  this->uninitialized_copy(this->begin(), this->end(), NewElts);
   
   // Destroy the original elements.
   destroy_range(this->begin(), this->end());
@@ -495,15 +495,15 @@
     
     // Copy over the elements that we're about to overwrite.
     T *OldEnd = this->end();
-    setEnd(this->end() + NumToInsert);
+	this->setEnd(this->end() + NumToInsert);
     size_t NumOverwritten = OldEnd-I;
-    uninitialized_copy(I, OldEnd, this->end()-NumOverwritten);
+	this->uninitialized_copy(I, OldEnd, this->end()-NumOverwritten);
     
     // Replace the overwritten part.
     std::copy(From, From+NumOverwritten, I);
     
     // Insert the non-overwritten middle part.
-    uninitialized_copy(From+NumOverwritten, To, OldEnd);
+	this->uninitialized_copy(From+NumOverwritten, To, OldEnd);
     return I;
   }
   





More information about the llvm-commits mailing list