[clang] [Modules] Record whether VarDecl initializers contain side effects (PR #143739)
Ben Langmuir via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 18 09:49:07 PDT 2025
================
@@ -1259,6 +1259,7 @@ void ASTDeclWriter::VisitVarDecl(VarDecl *D) {
VarDeclBits.addBit(D->isConstexpr());
VarDeclBits.addBit(D->isInitCapture());
VarDeclBits.addBit(D->isPreviousDeclInSameBlockScope());
+ VarDeclBits.addBit(D->hasInitWithSideEffects());
----------------
benlangmuir wrote:
I think you need to update the fixed width here https://github.com/llvm/llvm-project/blob/4084ffcf1e69b962e864aa138bb54dabbcec912f/clang/lib/Serialization/ASTWriterDecl.cpp#L2743. That's likely what's causing the CI test failures.
https://github.com/llvm/llvm-project/pull/143739
More information about the cfe-commits
mailing list