mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
don't assume iterators implicitly convert to pointers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60336 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -254,7 +254,7 @@ template<class IteratorTy>
|
|||||||
static inline void array_pod_sort(IteratorTy Start, IteratorTy End) {
|
static inline void array_pod_sort(IteratorTy Start, IteratorTy End) {
|
||||||
// Don't dereference start iterator of empty sequence.
|
// Don't dereference start iterator of empty sequence.
|
||||||
if (Start == End) return;
|
if (Start == End) return;
|
||||||
qsort(Start, End-Start, sizeof(*Start),
|
qsort(&*Start, End-Start, sizeof(*Start),
|
||||||
array_pod_sort_comparator<sizeof(*Start)>);
|
array_pod_sort_comparator<sizeof(*Start)>);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user