summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ImplicitNullChecks.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-08-04 03:53:00 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-08-04 03:53:00 +0000
commita91ba1260a9ca94c9756639b4a43bec5f05aa280 (patch)
tree82dbd153867a5acf1cf59099c6093864babb0fcd /llvm/lib/CodeGen/ImplicitNullChecks.cpp
parentf0c627d5f8a4d006d711e1d1e0c2028fdf346d8c (diff)
downloadbcm5719-llvm-a91ba1260a9ca94c9756639b4a43bec5f05aa280.tar.gz
bcm5719-llvm-a91ba1260a9ca94c9756639b4a43bec5f05aa280.zip
[UB] Another place where we were trying to put string data into
a BumpPtrAllocator. This at least now handles the case where there is no concatentation without calling memcpy on a null pointer. It might be interesting to handle the case where everything is empty without round-tripping through the allocator, but it wasn't clear to me if the pointer returned is significant in any way, so I've left it in a conservatively more-correct state. Again, found with UBSan. llvm-svn: 243948
Diffstat (limited to 'llvm/lib/CodeGen/ImplicitNullChecks.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud