Author: Vlad Serebrennikov Date: 2024-02-11T16:40:15+03:00 New Revision: 082439c33fa76ad4df267600472695d24ad53821
URL: https://github.com/llvm/llvm-project/commit/082439c33fa76ad4df267600472695d24ad53821 DIFF: https://github.com/llvm/llvm-project/commit/082439c33fa76ad4df267600472695d24ad53821.diff LOG: [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. Added: Modified: clang/include/clang/AST/StmtObjC.h Removed: ################################################################################ diff --git a/clang/include/clang/AST/StmtObjC.h b/clang/include/clang/AST/StmtObjC.h index c46ff4634c825..03bc61f54cdf5 100644 --- a/clang/include/clang/AST/StmtObjC.h +++ b/clang/include/clang/AST/StmtObjC.h @@ -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. /// _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits