mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-03 14:21:30 +00:00 
			
		
		
		
	SmallVector: Resolve a long-standing fixme by using the existing unitialized_copy dispatch.
This makes append() use memcpy for trivially copyable types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229142 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		@@ -414,9 +414,7 @@ public:
 | 
			
		||||
      this->grow(this->size()+NumInputs);
 | 
			
		||||
 | 
			
		||||
    // Copy the new elements over.
 | 
			
		||||
    // 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->uninitialized_copy(in_start, in_end, this->end());
 | 
			
		||||
    this->setEnd(this->end() + NumInputs);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user