summaryrefslogtreecommitdiffstats
path: root/clang/lib/Tooling/JSONCompilationDatabase.cpp
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2013-06-06 23:23:14 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2013-06-06 23:23:14 +0000
commit3bd2524b601c6c5de28d931705bf66ce2dd0fc4a (patch)
treec0dfc469f048c46a9d7789a8f84ae1b928f8e264 /clang/lib/Tooling/JSONCompilationDatabase.cpp
parent0030362ed9225ec9081ef836a5ac91b420bee483 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud