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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223212 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SmallVector.h

index 1ba9c41bf40459253011d41e2803921b8c20d443..a69684e3fdbf459e7962ede093b5c2bf2a80ebf5 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);
   }