diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-08-04 03:52:58 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-08-04 03:52:58 +0000 |
commit | f0c627d5f8a4d006d711e1d1e0c2028fdf346d8c (patch) | |
tree | 48e47bc29ee55d7a4feb92e0fad98722445445ea /clang/tools/c-index-test/c-index-test.c | |
parent | b6708d8ebf05cb3e09ea0ab495d2d45e0ca997a4 (diff) | |
download | bcm5719-llvm-f0c627d5f8a4d006d711e1d1e0c2028fdf346d8c.tar.gz bcm5719-llvm-f0c627d5f8a4d006d711e1d1e0c2028fdf346d8c.zip |
[UB] When attaching empty strings to the AST, use an empty StringRef
rather than forcing the bump pointer allocator to produce a viable
pointer. This also fixes UB when we would try to memcpy from the null
incoming StringRef.
llvm-svn: 243947
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
0 files changed, 0 insertions, 0 deletions