From: Duncan P. N. Exon Smith Date: Wed, 3 Dec 2014 04:49:16 +0000 (+0000) Subject: ADT: Add SmallVector<>::emplace_back(): fixup X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ba2915d05c0b2dd1ae6c26b59f1dc2c5c75661ba;p=oota-llvm.git ADT: Add SmallVector<>::emplace_back(): fixup Add missing `void` return type from `!LLVM_HAS_VARIADIC_TEMPLATES` case in r223201. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223202 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index 8c29f5c498d..1ba9c41bf40 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/include/llvm/ADT/SmallVector.h @@ -246,7 +246,7 @@ public: } #else private: - template emplace_back_impl(Constructor emplace) { + template void emplace_back_impl(Constructor emplace) { if (LLVM_UNLIKELY(this->EndX >= this->CapacityX)) this->grow(); emplace((void *)this->end());