Skip to content

Commit

Permalink
Fix an incorrect bit-width for storing attribute syntax information
Browse files Browse the repository at this point in the history
This field corresponds to the Syntax enumeration, and that gained
another entry in 1fdf952. However,
the bit-field for storing the syntax used was not adjusted to handle
the extra field.

This turns out to be unobservable for HLSL attributes at the moment, so
there is no test coverage. But it's also not really an NFC change
either.
  • Loading branch information
AaronBallman committed Jun 1, 2022
1 parent f711785 commit aaf04c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/include/clang/Basic/AttributeCommonInfo.h
Expand Up @@ -69,7 +69,7 @@ class AttributeCommonInfo {
// Corresponds to the Kind enum.
unsigned AttrKind : 16;
/// Corresponds to the Syntax enum.
unsigned SyntaxUsed : 3;
unsigned SyntaxUsed : 4;
unsigned SpellingIndex : 4;

protected:
Expand Down

0 comments on commit aaf04c7

Please sign in to comment.