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:
parent
80d0eff786
commit
3ac27eff64
@ -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)>);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user