aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2020-11-13 22:37:25 +0000
committerMehdi Amini <joker.eph@gmail.com>2020-11-14 00:55:34 +0000
commit2c196bbc6bd897b3dcc1d87a3baac28e1e88df41 (patch)
treebfb0bbaf0a89e3898df03e28fda3062b74afbc25 /clang/lib/Frontend/CompilerInvocation.cpp
parent42e88bd6b18597fe0a46ee9663d4e2cf2f7a4e57 (diff)
downloadllvm-2c196bbc6bd897b3dcc1d87a3baac28e1e88df41.zip
llvm-2c196bbc6bd897b3dcc1d87a3baac28e1e88df41.tar.gz
llvm-2c196bbc6bd897b3dcc1d87a3baac28e1e88df41.tar.bz2
Add an assertion in SmallVector::push_back()
This assertion ensures the input value isn't part of the vector when growing is required. In such cases the vector will grow and the input value is invalidated before being read from. This found 14 failed Tests. Reviewed By: bkramer Differential Revision: https://reviews.llvm.org/D84293
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions