Skip to content

Commit

Permalink
[clang][NFC] Refactor bit-fields in ObjCAtTryStmt
Browse files Browse the repository at this point in the history
Make all bit-fields of type `unsigned`, which reduces amoung of padding on Microsoft ABI, resulting in potentially lesser size of the object.
  • Loading branch information
Endilll committed Feb 11, 2024
1 parent 1503db8 commit 082439c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clang/include/clang/AST/StmtObjC.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ class ObjCAtTryStmt final
unsigned NumCatchStmts : 16;

// Whether this statement has a \@finally statement.
bool HasFinally : 1;
LLVM_PREFERRED_TYPE(bool)
unsigned HasFinally : 1;

/// Retrieve the statements that are stored after this \@try statement.
///
Expand Down

0 comments on commit 082439c

Please sign in to comment.