diff options
author | Chris Lattner <sabre@nondot.org> | 2008-12-01 06:50:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-12-01 06:50:46 +0000 |
commit | a29f0e19ff61283e08d83c412d3869c07e273ece (patch) | |
tree | 42d70975466d93634fd3280043ca9c1b4ba70e2a | |
parent | 2c2dd15a8521da3d2f60388f91090482f1dd637f (diff) | |
download | bcm5719-llvm-a29f0e19ff61283e08d83c412d3869c07e273ece.tar.gz bcm5719-llvm-a29f0e19ff61283e08d83c412d3869c07e273ece.zip |
don't assume iterators implicitly convert to pointers.
llvm-svn: 60336
-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)>); } |