diff --git a/clang/include/clang/Analysis/CFG.h b/clang/include/clang/Analysis/CFG.h index 67383bb316d31..9f776ca6cc260 100644 --- a/clang/include/clang/Analysis/CFG.h +++ b/clang/include/clang/Analysis/CFG.h @@ -1215,7 +1215,9 @@ class CFG { //===--------------------------------------------------------------------===// class BuildOptions { - std::bitset alwaysAddMask; + // Stmt::lastStmtConstant has the same value as the last Stmt kind, + // so make sure we add one to account for this! + std::bitset alwaysAddMask; public: using ForcedBlkExprs = llvm::DenseMap;