mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-27 15:57:30 +00:00
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:
parent
d7f09146b8
commit
3490afcd50
@ -275,8 +275,8 @@ private:
|
||||
|
||||
void destroy_range(T *S, T *E) {
|
||||
while (S != E) {
|
||||
E->~T();
|
||||
--E;
|
||||
E->~T();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user