Patch VisitCXXDeleteExpr() in clang::UsedDeclVisitor to avoid it crashing when the expression's destroyed type is null. According to the comments in CXXDeleteExpr::getDestroyedType(), this can happen when the type to delete is a dependent type.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I'm sorry, but I don't know how to reproduce the problem in isolation. We are JIT-compiling fairly complex C++ code, and the crash sometimes occurs when, for example, an included header file is not found...
Comment Actions
Great. I don't have commit access though. If I did, I would love to commit it to the release branch, which is what we use...
Comment Actions
I can help you commit it to trunk. For cherrypick to release branch, we may need help of @hans
Comment Actions
It's most likely too late for 11.0.0, but I will put it on my list of 11.0.1 candidates.