[llvm] r229144 - Revert r229142. It breaks the world for unknown reasons.

Benjamin Kramer benny.kra at googlemail.com
Fri Feb 13 11:45:28 PST 2015


Author: d0k
Date: Fri Feb 13 13:45:28 2015
New Revision: 229144

URL: http://llvm.org/viewvc/llvm-project?rev=229144&view=rev
Log:
Revert r229142. It breaks the world for unknown reasons.

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=229144&r1=229143&r2=229144&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallVector.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallVector.h Fri Feb 13 13:45:28 2015
@@ -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);
   }
 





More information about the llvm-commits mailing list