[clang] [Clang] Fix looking for immediate calls in default arguments. (PR #80690)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 6 14:30:58 PST 2024
================
@@ -6198,7 +6198,7 @@ struct ImmediateCallVisitor : public RecursiveASTVisitor<ImmediateCallVisitor> {
bool VisitCallExpr(CallExpr *E) {
if (const FunctionDecl *FD = E->getDirectCallee())
HasImmediateCalls |= FD->isImmediateFunction();
- return RecursiveASTVisitor<ImmediateCallVisitor>::VisitStmt(E);
+ return RecursiveASTVisitor<ImmediateCallVisitor>::VisitCallExpr(E);
----------------
AaronBallman wrote:
This is a noop, right? If so, I'd drop the changes here but make an NFC change for this and the one in `VisitSourceLocExpr()` at the same time.
https://github.com/llvm/llvm-project/pull/80690
More information about the cfe-commits
mailing list