From 59c9cb75d2e54265fb7ca2cb5fe705eb0072cfb1 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Wed, 3 Dec 2014 05:53:24 +0000 Subject: [PATCH] ADT: Rename argument in emplace_back_impl 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index 1ba9c41bf40..a69684e3fdb 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/include/llvm/ADT/SmallVector.h @@ -246,10 +246,10 @@ public: } #else private: - template void emplace_back_impl(Constructor emplace) { + template 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); } -- 2.34.1