================ @@ -1731,11 +1731,7 @@ static bool CheckConstexprDestructorSubobjects(Sema &SemaRef, SemaRef.Diag(Loc, diag::note_constexpr_dtor_subobject) << !FD << (FD ? FD->getDeclName() : DeclarationName()) << T; } - - if (SemaRef.getLangOpts().CPlusPlus23) - return true; - - return false; + return !!SemaRef.getLangOpts().CPlusPlus23; ---------------- cor3ntin wrote:
i missed the lambda sorry. Looks fine (alternatively `-> bool` might be just as clean) https://github.com/llvm/llvm-project/pull/77753 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits