[llvm] r223212 - ADT: Rename argument in emplace_back_impl
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Dec 2 21:53:24 PST 2014
Author: dexonsmith
Date: Tue Dec 2 23:53:24 2014
New Revision: 223212
URL: http://llvm.org/viewvc/llvm-project?rev=223212&view=rev
Log:
ADT: Rename argument in emplace_back_impl
Rename a functor argument in r223201 from `emplace` to `construct` to
reduce confusion.
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=223212&r1=223211&r2=223212&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallVector.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallVector.h Tue Dec 2 23:53:24 2014
@@ -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);
}
More information about the llvm-commits
mailing list