ADT: Add SmallVector<>::emplace_back(): fixup
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 3 Dec 2014 04:49:16 +0000 (04:49 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 3 Dec 2014 04:49:16 +0000 (04:49 +0000)
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

include/llvm/ADT/SmallVector.h

index 8c29f5c498ddd42c26241485a3d8a1ec202decde..1ba9c41bf40459253011d41e2803921b8c20d443 100644 (file)
@@ -246,7 +246,7 @@ public:
   }
 #else
 private:
-  template <typename Constructor> emplace_back_impl(Constructor emplace) {
+  template <typename Constructor> void emplace_back_impl(Constructor emplace) {
     if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
       this->grow();
     emplace((void *)this->end());