projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9c52c3
)
[clang] Remove an incorrect assert
author
Corentin Jabot
<corentinjabot@gmail.com>
Fri, 4 Nov 2022 14:45:06 +0000
(15:45 +0100)
committer
Corentin Jabot
<corentinjabot@gmail.com>
Fri, 4 Nov 2022 14:46:22 +0000
(15:46 +0100)
Compound statements can appear in default arguments
but should not be visited in ImmediateCallVisitor as they are
not subexpressions
clang/lib/Sema/SemaExpr.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaExpr.cpp
b/clang/lib/Sema/SemaExpr.cpp
index
40f6af8
..
ec67a6b
100644
(file)
--- 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;
}