[clang] 5f87a89 - [clang] Fix assert in SemaEXpr.cpp
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 4 07:39:12 PDT 2022
Author: Corentin Jabot
Date: 2022-11-04T15:37:37+01:00
New Revision: 5f87a892a7bed9cb0599573b9aaf387bc1df9c14
URL: https://github.com/llvm/llvm-project/commit/5f87a892a7bed9cb0599573b9aaf387bc1df9c14
DIFF: https://github.com/llvm/llvm-project/commit/5f87a892a7bed9cb0599573b9aaf387bc1df9c14.diff
LOG: [clang] Fix assert in SemaEXpr.cpp
Added:
Modified:
clang/lib/Sema/SemaExpr.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 51bd0004a389..40f6af8d8e8c 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -5943,7 +5943,7 @@ struct ImmediateCallVisitor : public RecursiveASTVisitor<ImmediateCallVisitor> {
bool VisitBlockDecl(BlockDecl *B) { return false; }
bool VisitCompoundStmt(CompoundStmt *B) {
- assert("Unexpected Compound statement in default parameter or initializer");
+ assert(false && "Unexpected Compound statement in default parameter or initializer");
return false;
}
More information about the cfe-commits
mailing list