OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99d0015
)
don't assume iterators implicitly convert to pointers.
author
Chris Lattner
<sabre@nondot.org>
Mon, 1 Dec 2008 06:50:46 +0000
(06:50 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 1 Dec 2008 06:50:46 +0000
(06:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60336
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/STLExtras.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/STLExtras.h
b/include/llvm/ADT/STLExtras.h
index
ae1a1ab
..
87f7a11
100644
(file)
--- 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)>);
}