[llvm-commits] [llvm] r91617 - /llvm/trunk/include/llvm/ADT/SmallVector.h
Chris Lattner
clattner at apple.com
Thu Dec 17 21:34:36 PST 2009
On Dec 17, 2009, at 9:00 PM, Nick Lewycky wrote:
>> // Copy over the elements that we're about to overwrite.
>> T *OldEnd = this->end();
>> - setEnd(this->end() + NumToInsert);
>> + this->setEnd(this->end() + NumToInsert);
>
> Tab.
I already fixed these. Thanks Nick,
-Chris
>
>> 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
>>
>
> _______________________________________________
> 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