aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/ADT/STLExtras.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/STLExtras.h b/include/llvm/ADT/STLExtras.h
index ae1a1abefd..87f7a11725 100644
--- a/include/llvm/ADT/STLExtras.h
+++ b/include/llvm/ADT/STLExtras.h
@@ -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)>);
}