Author: Corentin Jabot Date: 2022-11-04T15:46:22+01:00 New Revision: 6875ac69279a3a02fab382a2c8d121558ecbfa91
URL: https://github.com/llvm/llvm-project/commit/6875ac69279a3a02fab382a2c8d121558ecbfa91 DIFF: https://github.com/llvm/llvm-project/commit/6875ac69279a3a02fab382a2c8d121558ecbfa91.diff LOG: [clang] Remove an incorrect assert Compound statements can appear in default arguments but should not be visited in ImmediateCallVisitor as they are not subexpressions Added: Modified: clang/lib/Sema/SemaExpr.cpp Removed: ################################################################################ diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 40f6af8d8e8c..ec67a6b6f28e 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -5943,7 +5943,6 @@ struct ImmediateCallVisitor : public RecursiveASTVisitor<ImmediateCallVisitor> { bool VisitBlockDecl(BlockDecl *B) { return false; } bool VisitCompoundStmt(CompoundStmt *B) { - assert(false && "Unexpected Compound statement in default parameter or initializer"); return false; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits