mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-03 02:53:06 +00:00
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:
parent
d0e44c2e05
commit
8c06509f95
@ -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