[clang] [clang][NFC] Annotate `Type` bit-fields with `clang::preferred_type` (PR #70349)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 26 22:58:21 PDT 2023
================
@@ -49,7 +49,7 @@ struct ExprDependenceScope {
using ExprDependence = ExprDependenceScope::ExprDependence;
struct TypeDependenceScope {
- enum TypeDependence : uint8_t {
+ enum TypeDependence : unsigned {
----------------
Endilll wrote:
The only place this enum is stored is bit-field I annotate in this patch. Like it was with `TypeAlignment`, I'm only encoding status quo that actual underlying type for this enum is unsigned. There is no impact on memory footprint, because I'm yet to see us deriving bit-field width from underlying type of enum.
https://github.com/llvm/llvm-project/pull/70349
More information about the cfe-commits
mailing list