diff options
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/ADT/STLExtras.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h index ae1a1abefda..87f7a117251 100644 --- a/llvm/include/llvm/ADT/STLExtras.h +++ b/llvm/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)>); } |