[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
================
@@ -3666,7 +3668,8 @@ Stmt *ASTReader::ReadStmtFromStream(ModuleFile &F) {
S = CXXExpansionStmtPattern::CreateEmpty(
Context, Empty,
static_cast<CXXExpansionStmtPattern::ExpansionStmtKind>(
- Record[ASTStmtReader::NumStmtFields]));
+ Record[ASTStmtReader::NumStmtFields]),
+ Record[ASTStmtReader::NumStmtFields + 1]);
----------------
ojhunt wrote:
diff is difficult to read here: is this indented correctly?
https://github.com/llvm/llvm-project/pull/212319
More information about the cfe-commits
mailing list