summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-03-24 01:16:06 +0000
committerPete Cooper <peter_cooper@apple.com>2016-03-24 01:16:06 +0000
commitb29ecbd4e9149c474a6ed3fe9fb4c30f3dcbbe66 (patch)
tree8c75581827e0c37acbf6fedfea1455e17b2407b1 /clang/lib/Frontend/CompilerInvocation.cpp
parent07134ae364c4cba9158a2c43adb78a8da1051b3e (diff)
downloadbcm5719-llvm-b29ecbd4e9149c474a6ed3fe9fb4c30f3dcbbe66.tar.gz
bcm5719-llvm-b29ecbd4e9149c474a6ed3fe9fb4c30f3dcbbe66.zip
Avoid UB when creating empty atoms. NFC.
The stack-size.yaml test had an empty atom content array. This is legal, but asking a BumpPtrAllocator for 0 sized data may not be legal. Instead just avoid requesting any data when we can just return an empty ArrayRef instead. llvm-svn: 264234
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud