[clang] Fix crash on defaulted comparison recovery in Sema and AST (PR #210668)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 5 01:12:10 PDT 2026
================
@@ -9042,7 +9042,7 @@ bool Sema::CheckExplicitlyDefaultedComparison(Scope *S, FunctionDecl *FD,
// Perform any unqualified lookups we're going to need to default this
// function.
- if (S) {
+ if (S && !FD->isInvalidDecl()) {
----------------
ojhunt wrote:
I don't believe we should be getting here if the function is invalid
https://github.com/llvm/llvm-project/pull/210668
More information about the cfe-commits
mailing list