mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
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:
parent
ed139ac365
commit
ffcc42764e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user