[clang-tools-extra] [clang-tidy] Fix crashes when analyzing unknown exceptions in bugprone-exception-escape (PR #218067)
Zeyi Xu via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 22 05:48:34 PDT 2026
================
@@ -362,6 +362,8 @@ ExceptionAnalyzer::ExceptionInfo::filterByCatch(const Type *HandlerTy,
SmallVector<const Type *, 8> TypesToDelete;
for (const auto &ThrownException : ThrownExceptions) {
const Type *ExceptionTy = ThrownException.getFirst();
+ if (!ExceptionTy)
+ continue;
----------------
zeyi2 wrote:
I think it still works as expected, and this seems already covered in the existing test cases.
https://github.com/llvm/llvm-project/pull/218067
More information about the cfe-commits
mailing list