[clang] [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #117437)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 31 20:08:42 PST 2025
================
@@ -5570,8 +5570,10 @@ ExprResult Sema::BuildCXXDefaultArgExpr(SourceLocation CallLoc,
/*SkipImmediateInvocations=*/NestedDefaultChecking))
return ExprError();
+ Expr *RewrittenExpr = Init == Param->getDefaultArg() ? nullptr : Init;
----------------
yronglin wrote:
Fixed
https://github.com/llvm/llvm-project/pull/117437
More information about the cfe-commits
mailing list