Skip to content

Commit 077db52

Browse files
committed
Address Aaron's feedback
1 parent 690a251 commit 077db52

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

clang/lib/Sema/SemaExpr.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6199,7 +6199,7 @@ struct ImmediateCallVisitor : public RecursiveASTVisitor<ImmediateCallVisitor> {
61996199
bool VisitCallExpr(CallExpr *E) {
62006200
if (const FunctionDecl *FD = E->getDirectCallee())
62016201
HasImmediateCalls |= FD->isImmediateFunction();
6202-
return RecursiveASTVisitor<ImmediateCallVisitor>::VisitCallExpr(E);
6202+
return RecursiveASTVisitor<ImmediateCallVisitor>::VisitStmt(E);
62036203
}
62046204

62056205
bool VisitCXXConstructExpr(CXXConstructExpr *E) {
@@ -6227,12 +6227,6 @@ struct ImmediateCallVisitor : public RecursiveASTVisitor<ImmediateCallVisitor> {
62276227
return VisitCXXMethodDecl(E->getCallOperator());
62286228
}
62296229

6230-
// Blocks don't support default parameters, and, as for lambdas,
6231-
// we don't consider their body a subexpression.
6232-
bool VisitBlockDecl(BlockDecl *B) { return true; }
6233-
6234-
bool VisitCompoundStmt(CompoundStmt *B) { return true; }
6235-
62366230
bool VisitCXXDefaultArgExpr(CXXDefaultArgExpr *E) {
62376231
return TraverseStmt(E->getExpr());
62386232
}

0 commit comments

Comments
 (0)