[libc-commits] [libc] [libc] add rwlock (PR #94156)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Thu Jun 6 14:45:58 PDT 2024


================
@@ -113,6 +113,7 @@ def POSIX : StandardSpec<"POSIX"> {
   NamedType PThreadRWLockAttrTType = NamedType<"pthread_rwlockattr_t">;
   PtrType PThreadRWLockAttrTPtr = PtrType<PThreadRWLockAttrTType>;
   ConstType ConstPThreadRWLockAttrTPtr = ConstType<PThreadRWLockAttrTPtr>;
+  ConstType ConstRestrictedPThreadRWLockAttrTPtr = ConstType<RestrictedPtrType<PThreadRWLockAttrTType>>;
----------------
michaelrj-google wrote:

nit: the general style is to create the intermediate types (e.g. `RestrictedPThreadRWLockAttrTPtr`) even if they aren't currently used.

https://github.com/llvm/llvm-project/pull/94156


More information about the libc-commits mailing list