diff options
author | Nick Kledzik <kledzik@apple.com> | 2014-01-28 23:25:13 +0000 |
---|---|---|
committer | Nick Kledzik <kledzik@apple.com> | 2014-01-28 23:25:13 +0000 |
commit | c80ff7d4b0d62e4547e6d4630f028e5ccf9528e2 (patch) | |
tree | 4bde17d7a48938b96ec2240d9b452f1773334812 | |
parent | 7854f804d62971c5dfa7fd4e28b12e154e215222 (diff) | |
download | bcm5719-llvm-c80ff7d4b0d62e4547e6d4630f028e5ccf9528e2.tar.gz bcm5719-llvm-c80ff7d4b0d62e4547e6d4630f028e5ccf9528e2.zip |
Be more explicit about which overloaded variant to use. Caught by ASan!
llvm-svn: 200353
-rw-r--r-- | llvm/include/llvm/Support/Allocator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Allocator.h b/llvm/include/llvm/Support/Allocator.h index d259415bc39..275086bffdf 100644 --- a/llvm/include/llvm/Support/Allocator.h +++ b/llvm/include/llvm/Support/Allocator.h @@ -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); } |