[llvm] r200333 - fix templates to work with pre c++11
Nick Kledzik
kledzik at apple.com
Tue Jan 28 11:33:09 PST 2014
Author: kledzik
Date: Tue Jan 28 13:33:09 2014
New Revision: 200333
URL: http://llvm.org/viewvc/llvm-project?rev=200333&view=rev
Log:
fix templates to work with pre c++11
Modified:
llvm/trunk/include/llvm/Support/Allocator.h
Modified: llvm/trunk/include/llvm/Support/Allocator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Allocator.h?rev=200333&r1=200332&r2=200333&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Allocator.h (original)
+++ llvm/trunk/include/llvm/Support/Allocator.h Tue Jan 28 13:33:09 2014
@@ -208,7 +208,7 @@ public:
/// Copy a ArrayRef<T> by allocating copy in BumpPtrAllocator.
template <typename T>
- typename enable_if<isPodLike<T>, ArrayRef<T>>::type
+ typename enable_if<isPodLike<T>, ArrayRef<T> >::type
allocateCopy(ArrayRef<T> Src) {
size_t Length = Src.size();
T *P = allocateCopy(Src.data(), Length*sizeof(T));
More information about the llvm-commits
mailing list