aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2019-01-08 15:24:47 +0000
committerHaojian Wu <hokein@google.com>2019-01-08 15:24:47 +0000
commit073d184ee37d0daf5e944740635121f73a59c66b (patch)
tree2b49bf61310360cc605cce47e3fdc16805db18f5 /clang/lib/CodeGen/CodeGenModule.cpp
parent59e373fd635f1fbc21236e1389a43a091edd9fe1 (diff)
downloadllvm-073d184ee37d0daf5e944740635121f73a59c66b.zip
llvm-073d184ee37d0daf5e944740635121f73a59c66b.tar.gz
llvm-073d184ee37d0daf5e944740635121f73a59c66b.tar.bz2
[clangd] Fix a crash when reading an empty index file.
Summary: Unfortunately, yaml::Input::setCurrentDocument() and yaml::Input::nextDocument() are internal APIs, the way we use them may cause a nullptr accessing when processing an empty YAML file. Reviewers: ilya-biryukov Subscribers: ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits Differential Revision: https://reviews.llvm.org/D56442 llvm-svn: 350633
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions