[libc-commits] [PATCH] D152664: [libc] Fix argument types for {f, }truncate specs

Alfred Persson Forsberg via Phabricator via libc-commits libc-commits at lists.llvm.org
Sun Jun 11 19:30:57 PDT 2023


alfredfo updated this revision to Diff 530359.
alfredfo added a comment.

[libc] Fix argument types for {f,}truncate specs

s/ConstCharType/ConstCharPtr


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152664/new/

https://reviews.llvm.org/D152664

Files:
  libc/spec/posix.td


Index: libc/spec/posix.td
===================================================================
--- libc/spec/posix.td
+++ libc/spec/posix.td
@@ -425,7 +425,7 @@
         FunctionSpec<
           "ftruncate",
           RetValSpec<IntType>,
-          [ArgSpec<ConstCharPtr>, ArgSpec<OffTType>]
+          [ArgSpec<IntType>, ArgSpec<OffTType>]
         >,
         FunctionSpec<
           "geteuid",
@@ -580,7 +580,7 @@
         FunctionSpec<
           "truncate",
           RetValSpec<IntType>,
-          [ArgSpec<IntType>, ArgSpec<OffTType>]
+          [ArgSpec<ConstCharPtr>, ArgSpec<OffTType>]
         >,
         FunctionSpec<
           "unlink",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152664.530359.patch
Type: text/x-patch
Size: 656 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230612/4922c85b/attachment.bin>


More information about the libc-commits mailing list