[libc-commits] [libc] [libc] Added const modifier to SigSetPtrType (PR #96252)
via libc-commits
libc-commits at lists.llvm.org
Thu Jun 20 16:47:26 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: None (RoseZhang03)
<details>
<summary>Changes</summary>
Headerfiles for epoll_pwait and epoll_pwait2 have const modifier on
SigSetPtrType in function signature, but the linux.td file does not
reflect that.
.td file located in libc/spec/linux.td
epoll functions located in libc/src/sys/epoll
---
Full diff: https://github.com/llvm/llvm-project/pull/96252.diff
1 Files Affected:
- (modified) libc/spec/linux.td (+2-2)
``````````diff
diff --git a/libc/spec/linux.td b/libc/spec/linux.td
index f91f55ddac784..82630ff413c73 100644
--- a/libc/spec/linux.td
+++ b/libc/spec/linux.td
@@ -205,7 +205,7 @@ def Linux : StandardSpec<"Linux"> {
ArgSpec<StructEpollEventPtr>,
ArgSpec<IntType>,
ArgSpec<IntType>,
- ArgSpec<SigSetPtrType>
+ ArgSpec<ConstSigSetPtrType>
]
>,
FunctionSpec<
@@ -216,7 +216,7 @@ def Linux : StandardSpec<"Linux"> {
ArgSpec<StructEpollEventPtr>,
ArgSpec<IntType>,
ArgSpec<ConstStructTimeSpecPtr>,
- ArgSpec<SigSetPtrType>
+ ArgSpec<ConstSigSetPtrType>
]
>,
] // Functions
``````````
</details>
https://github.com/llvm/llvm-project/pull/96252
More information about the libc-commits
mailing list