[PATCH] D151567: [LLVM][Support] Report EISDIR when opening a directory on AIX

Hubert Tong via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 4 15:44:27 PDT 2023


hubert.reinterpretcast added inline comments.


================
Comment at: llvm/lib/Support/Unix/Path.inc:1020
+    struct stat Status;
+    if (stat(P.begin(), &Status) == -1) 
+      return std::error_code(errno, std::generic_category());
----------------
Please try using `fstat` on the result of `open` to address the comments from https://reviews.llvm.org/D156798.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151567



More information about the cfe-commits mailing list