[clang] [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #91879)
via cfe-commits
cfe-commits at lists.llvm.org
Fri May 17 09:45:45 PDT 2024
================
@@ -5905,7 +5907,7 @@ ExprResult Sema::BuildCXXDefaultInitExpr(SourceLocation Loc, FieldDecl *Field) {
return CXXDefaultInitExpr::Create(Context, InitializationContext->Loc,
Field, InitializationContext->Context,
- Init);
+ HasRewrittenInit ? Init : nullptr);
----------------
yronglin wrote:
@cor3ntin Could you please help confirm this change is make sense?
https://github.com/llvm/llvm-project/pull/91879
More information about the cfe-commits
mailing list