[llvm] r223202 - ADT: Add SmallVector<>::emplace_back(): fixup

Duncan P. N. Exon Smith dexonsmith at apple.com
Tue Dec 2 20:49:16 PST 2014


Author: dexonsmith
Date: Tue Dec  2 22:49:16 2014
New Revision: 223202

URL: http://llvm.org/viewvc/llvm-project?rev=223202&view=rev
Log:
ADT: Add SmallVector<>::emplace_back(): fixup

Add missing `void` return type from `!LLVM_HAS_VARIADIC_TEMPLATES` case
in r223201.

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=223202&r1=223201&r2=223202&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallVector.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallVector.h Tue Dec  2 22:49:16 2014
@@ -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());





More information about the llvm-commits mailing list