diff options
-rw-r--r-- | llvm/include/llvm/ADT/SmallVector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h index 1ba9c41bf40..a69684e3fdb 100644 --- a/llvm/include/llvm/ADT/SmallVector.h +++ b/llvm/include/llvm/ADT/SmallVector.h @@ -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); } |