From 802f6b37e516adc305d8989f714716006de05615 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 13 Feb 2015 19:45:28 +0000 Subject: [PATCH] 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 --- include/llvm/ADT/SmallVector.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.34.1