1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02:00

don't assume iterators implicitly convert to pointers.

llvm-svn: 60336
This commit is contained in:
Chris Lattner 2008-12-01 06:50:46 +00:00
parent 80d0eff786
commit 3ac27eff64

View File

@ -254,7 +254,7 @@ template<class IteratorTy>
static inline void array_pod_sort(IteratorTy Start, IteratorTy End) {
// Don't dereference start iterator of empty sequence.
if (Start == End) return;
qsort(Start, End-Start, sizeof(*Start),
qsort(&*Start, End-Start, sizeof(*Start),
array_pod_sort_comparator<sizeof(*Start)>);
}