summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2014-01-28 23:25:13 +0000
committerNick Kledzik <kledzik@apple.com>2014-01-28 23:25:13 +0000
commitc80ff7d4b0d62e4547e6d4630f028e5ccf9528e2 (patch)
tree4bde17d7a48938b96ec2240d9b452f1773334812
parent7854f804d62971c5dfa7fd4e28b12e154e215222 (diff)
downloadbcm5719-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.h2
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);
}
OpenPOWER on IntegriCloud