diff options
author | Tom Praschan <13141438+tom-anders@users.noreply.github.com> | 2022-09-18 18:48:11 +0200 |
---|---|---|
committer | Tom Praschan <13141438+tom-anders@users.noreply.github.com> | 2022-09-21 00:45:26 +0200 |
commit | 60528c690a4c334d2a3a2c22eb97af9e67d7a91d (patch) | |
tree | 9df0150d3bca40d85c3677068fe9c610de1bc8ad /clang/lib/Serialization/ModuleManager.cpp | |
parent | b95c57444a8ac3f81bc33a3d52d0f88b7a592a2f (diff) | |
download | llvm-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