summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2015-06-19 22:40:05 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2015-06-19 22:40:05 +0000
commit74ecc89c464a858f261ec279dd202dfafa476d7d (patch)
tree6711ab8078c0b3b11d483afba4eb4e2f0786c6b5 /clang/lib/Lex
parentf00df0af2d0587ead9e36b7161206187e7b24622 (diff)
downloadbcm5719-llvm-74ecc89c464a858f261ec279dd202dfafa476d7d.tar.gz
bcm5719-llvm-74ecc89c464a858f261ec279dd202dfafa476d7d.zip
COFF: Take reference to argument vector using std::vector::data() instead of operator[](0).
This avoids undefined behaviour caused by an out-of-range access if the vector is empty, which can happen if an object file's directive section contains only whitespace. llvm-svn: 240183
Diffstat (limited to 'clang/lib/Lex')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud