aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/ModuleManager.cpp
diff options
context:
space:
mode:
authorTom Praschan <13141438+tom-anders@users.noreply.github.com>2022-09-18 18:48:11 +0200
committerTom Praschan <13141438+tom-anders@users.noreply.github.com>2022-09-21 00:45:26 +0200
commit60528c690a4c334d2a3a2c22eb97af9e67d7a91d (patch)
tree9df0150d3bca40d85c3677068fe9c610de1bc8ad /clang/lib/Serialization/ModuleManager.cpp
parentb95c57444a8ac3f81bc33a3d52d0f88b7a592a2f (diff)
downloadllvm-60528c690a4c334d2a3a2c22eb97af9e67d7a91d.zip
llvm-60528c690a4c334d2a3a2c22eb97af9e67d7a91d.tar.gz
llvm-60528c690a4c334d2a3a2c22eb97af9e67d7a91d.tar.bz2
[clangd] Return earlier when snippet is empty
Fixes github.com/clangd/clangd/issues/1216 If the Snippet string is empty, Snippet.front() would trigger a crash. Move the Snippet->empty() check up a few lines to avoid this. Should not break any existing behavior. Differential Revision: https://reviews.llvm.org/D134137
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions