[all-commits] [llvm/llvm-project] 5537b2: Make CompoundStmtBitfields::NumStmts not a bit-field
Serge Pavlov via All-commits
all-commits at lists.llvm.org
Fri May 20 00:22:03 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5537b22ccbdc562929949844f9f816cf720e5205
https://github.com/llvm/llvm-project/commit/5537b22ccbdc562929949844f9f816cf720e5205
Author: Serge Pavlov <sepavloff at gmail.com>
Date: 2022-05-20 (Fri, 20 May 2022)
Changed paths:
M clang/include/clang/AST/Stmt.h
M clang/lib/AST/Stmt.cpp
M clang/lib/Serialization/ASTReaderStmt.cpp
Log Message:
-----------
Make CompoundStmtBitfields::NumStmts not a bit-field
Number of statements in CompoundStmt is kept in a bit-field of the common
part of Stmt. The field has 24 bits for the number. To allocate a new
bit field (as attempted in https://reviews.llvm.org/D123952), this
number must be reduced, maximal number of statements in a compound
statement becomes smaller. It can result in compilation errors of some
programs.
With this change the number of statements is kept in a field of type
'unsigned int' rather than in bit-field. To make room in CompoundStmtBitfields
LBraceLoc is moved to fields of CompoundStmt.
Differential Revision: https://reviews.llvm.org/D125635
More information about the All-commits
mailing list