forked from OSchip/llvm-project
After spending 15 minutes trying to figure out why this was crashing, I realized it was a bug in the test case :)
llvm-svn: 72680
This commit is contained in:
parent
fa7c608ecc
commit
6f6f6005ab
|
@ -31,7 +31,7 @@ public:
|
|||
T* NewStart = (T*)malloc(sizeof(T) * other.size());
|
||||
|
||||
for (unsigned I = 0, N = other.size(); I != N; ++I)
|
||||
new (Start + I) T(other[I]);
|
||||
new (NewStart + I) T(other[I]);
|
||||
|
||||
// FIXME: destroy everything in Start
|
||||
free(Start);
|
||||
|
|
Loading…
Reference in New Issue