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 | 3bd2524b601c6c5de28d931705bf66ce2dd0fc4a (patch) | |
| tree | c0dfc469f048c46a9d7789a8f84ae1b928f8e264 /clang/lib/Tooling/JSONCompilationDatabase.cpp | |
| parent | 0030362ed9225ec9081ef836a5ac91b420bee483 (diff) | |
| download | bcm5719-llvm-3bd2524b601c6c5de28d931705bf66ce2dd0fc4a.tar.gz bcm5719-llvm-3bd2524b601c6c5de28d931705bf66ce2dd0fc4a.zip | |
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).
llvm-svn: 183459
Diffstat (limited to 'clang/lib/Tooling/JSONCompilationDatabase.cpp')
0 files changed, 0 insertions, 0 deletions

