Skip to content

Commit 082439c

Browse files
committed
[clang][NFC] Refactor bit-fields in ObjCAtTryStmt
Make all bit-fields of type `unsigned`, which reduces amoung of padding on Microsoft ABI, resulting in potentially lesser size of the object.
1 parent 1503db8 commit 082439c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/include/clang/AST/StmtObjC.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ class ObjCAtTryStmt final
177177
unsigned NumCatchStmts : 16;
178178

179179
// Whether this statement has a \@finally statement.
180-
bool HasFinally : 1;
180+
LLVM_PREFERRED_TYPE(bool)
181+
unsigned HasFinally : 1;
181182

182183
/// Retrieve the statements that are stored after this \@try statement.
183184
///

0 commit comments

Comments
 (0)