Skip to content

Commit

Permalink
[clang][NFC] Annotate 2 leftover bit-fields in Type.h with `preferr…
Browse files Browse the repository at this point in the history
…ed_type`
  • Loading branch information
Endilll committed Nov 4, 2023
1 parent 0fea0d2 commit c4b2d33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clang/include/clang/AST/Type.h
Original file line number Diff line number Diff line change
Expand Up @@ -1672,7 +1672,7 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {

/// Storage class qualifiers from declarations like
/// 'int X[static restrict 4]'. For function parameters only.
/// Actually an ArraySizeModifier.
LLVM_PREFERRED_TYPE(ArraySizeModifier)
unsigned SizeModifier : 3;
};
enum { NumArrayTypeBits = NumTypeBits + 6 };
Expand Down Expand Up @@ -6663,6 +6663,7 @@ class PipeType : public Type, public llvm::FoldingSetNode {
/// A fixed int type of a specified bitwidth.
class BitIntType final : public Type, public llvm::FoldingSetNode {
friend class ASTContext;
LLVM_PREFERRED_TYPE(bool)
unsigned IsUnsigned : 1;
unsigned NumBits : 24;

Expand Down

0 comments on commit c4b2d33

Please sign in to comment.