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:
Anders Carlsson 2009-06-01 00:40:08 +00:00
parent fa7c608ecc
commit 6f6f6005ab
1 changed files with 1 additions and 1 deletions

View File

@ -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);