fix a critical bug in smallvector, where it would destroy elements that are

not in its range (!).

llvm-svn: 34230
This commit is contained in:
Chris Lattner 2007-02-13 07:25:36 +00:00
parent d7f09146b8
commit 3490afcd50

View File

@ -275,8 +275,8 @@ private:
void destroy_range(T *S, T *E) {
while (S != E) {
E->~T();
--E;
E->~T();
}
}
};