[PATCH] D135257: [clangd][Tweak] Make sure enclosing function doesnt have invalid children
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 5 04:30:38 PDT 2022
kadircet added a comment.
This is triggering crashes in our production setup, but I couldn't come up with a reduced test case.
crash is triggered in the loop:
for (const auto *S : EnclosingFunction->getBody()->children()) {
if (SM.isBeforeInTranslationUnit(S->getSourceRange().getEnd(),
ZoneRange.getEnd()))
in which `S` is `nullptr`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135257/new/
https://reviews.llvm.org/D135257
More information about the cfe-commits
mailing list