[PATCH] D131696: [clangd] Fix an inlay-hint crash on a broken designator.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 12 04:43:30 PDT 2022
hokein added inline comments.
================
Comment at: clang-tools-extra/clangd/InlayHints.cpp:140
for (const Expr *Init : Sem->inits()) {
+ if (!Init)
+ continue;
----------------
kadircet wrote:
> we should have this bail out after introducing the scope_exit below to make sure we skip the field.
good catch! You're right.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131696/new/
https://reviews.llvm.org/D131696
More information about the cfe-commits
mailing list