[clang] [Clang] Treat the body of an expansion statement with expansion size 0 as discarded (PR #212319)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 4 22:22:28 PDT 2026
================
@@ -1760,12 +1760,15 @@ void ASTStmtWriter::VisitCXXForRangeStmt(CXXForRangeStmt *S) {
void ASTStmtWriter::VisitCXXExpansionStmtPattern(CXXExpansionStmtPattern *S) {
VisitStmt(S);
Record.push_back(static_cast<unsigned>(S->getKind()));
+ Record.push_back(S->getExpansionSize().has_value());
----------------
ojhunt wrote:
obviously a `readBool` would imply `writeBool` would be required here
https://github.com/llvm/llvm-project/pull/212319
More information about the cfe-commits
mailing list