fix templates to work with pre c++11

llvm-svn: 200333
This commit is contained in:
Nick Kledzik 2014-01-28 19:33:09 +00:00
parent 2e03f24301
commit b0be8687b9
1 changed files with 1 additions and 1 deletions

View File

@ -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));