ADT: Rename argument in emplace_back_impl
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 3 Dec 2014 05:53:24 +0000 (05:53 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 3 Dec 2014 05:53:24 +0000 (05:53 +0000)
Rename a functor argument in r223201 from `emplace` to `construct` to
reduce confusion.

llvm-svn: 223212

llvm/include/llvm/ADT/SmallVector.h

index 1ba9c41..a69684e 100644 (file)
@@ -246,10 +246,10 @@ public:
   }
 #else
 private:
-  template <typename Constructor> void emplace_back_impl(Constructor emplace) {
+  template <typename Constructor> void emplace_back_impl(Constructor construct) {
     if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
       this->grow();
-    emplace((void *)this->end());
+    construct((void *)this->end());
     this->setEnd(this->end() + 1);
   }