[llvm-commits] [llvm] r91617 - /llvm/trunk/include/llvm/ADT/SmallVector.h
Nick Lewycky
nicholas at mxc.ca
Thu Dec 17 21:00:22 PST 2009
Steve Naroff wrote:
> 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);
Tab.
> size_t NumOverwritten = OldEnd-I;
> - uninitialized_copy(I, OldEnd, this->end()-NumOverwritten);
> + this->uninitialized_copy(I, OldEnd, this->end()-NumOverwritten);
Tab.
>
> // 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);
TAAAAABB!!!!
Nick
> return I;
> }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
More information about the llvm-commits
mailing list