Be more explicit about which overloaded variant to use. Caught by ASan!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200353 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Kledzik 2014-01-28 23:25:13 +00:00
parent ed139ac365
commit ffcc42764e

View File

@ -211,7 +211,7 @@ public:
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));
T *P = allocateCopy<T>(Src.data(), Length);
return makeArrayRef(P, Length);
}