diff options
author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-06-06 23:23:14 +0000 |
---|---|---|
committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-06-06 23:23:14 +0000 |
commit | 45dc03287e29affeeb7e1f1281fca63d8b9773b1 (patch) | |
tree | 35f1677ebd46e851c5ff7d640491307eedb2ce80 /test | |
parent | 81c5d11c25690cdb6282eb0ceb79f487325ce1e6 (diff) | |
download | llvm-45dc03287e29affeeb7e1f1281fca63d8b9773b1.tar.gz llvm-45dc03287e29affeeb7e1f1281fca63d8b9773b1.tar.bz2 llvm-45dc03287e29affeeb7e1f1281fca63d8b9773b1.tar.xz |
CodeGenSchedule: smallvector.push_back(smallvector[0]) is dangerous
The element passed to push_back is not copied before the vector reallocates.
The client needs to copy the element first before passing it to push_back.
No test case, will be tested by follow-up swift scheduler model change (it
segfaults without this change).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions