From: Benjamin Kramer Date: Fri, 13 Feb 2015 19:45:28 +0000 (+0000) Subject: Revert r229142. It breaks the world for unknown reasons. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=802f6b37e516adc305d8989f714716006de05615;p=oota-llvm.git Revert r229142. It breaks the world for unknown reasons. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229144 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index c9ddf61f5e8..af9bbb62345 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/include/llvm/ADT/SmallVector.h @@ -414,7 +414,9 @@ public: this->grow(this->size()+NumInputs); // Copy the new elements over. - this->uninitialized_copy(in_start, in_end, this->end()); + // TODO: NEED To compile time dispatch on whether in_iter is a random access + // iterator to use the fast uninitialized_copy. + std::uninitialized_copy(in_start, in_end, this->end()); this->setEnd(this->end() + NumInputs); }