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

not in its range (!).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34230 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-02-13 07:25:36 +00:00
parent d0e44c2e05
commit 8c06509f95

View File

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