Skip to content

Commit

Permalink
Amend clang::Stmt bitflag setup to the "empty" CXXSpliceExpr ctor
Browse files Browse the repository at this point in the history
Initialize Stmt::SpliceExprBits::HasTemplateKWAndArgsInfo to false.
Before it was left uninitialized.

Fixes issue 104.
  • Loading branch information
Karsten Wiese committed Oct 22, 2024
1 parent bf9669e commit adcf459
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clang/lib/AST/ExprCXX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2034,6 +2034,7 @@ CXXSpliceExpr::CXXSpliceExpr(QualType ResultTy, ExprValueKind ValueKind,

CXXSpliceExpr::CXXSpliceExpr(EmptyShell Empty)
: Expr(CXXSpliceExprClass, Empty) {
SpliceExprBits.HasTemplateKWAndArgsInfo = false;
}

CXXSpliceExpr *CXXSpliceExpr::Create(ASTContext &C,
Expand Down

0 comments on commit adcf459

Please sign in to comment.