llvm.org GIT mirror llvm / 4329c42
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 Chris Lattner 11 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
253253 static inline void array_pod_sort(IteratorTy Start, IteratorTy End) {
254254 // Don't dereference start iterator of empty sequence.
255255 if (Start == End) return;
256 qsort(Start, End-Start, sizeof(*Start),
256 qsort(&*Start, End-Start, sizeof(*Start),
257257 array_pod_sort_comparator);
258258 }
259259