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

Alison Zhang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 1 07:26:56 PDT 2023


azhan92 updated this revision to Diff 546053.
azhan92 added a comment.

Check if directory before opening file.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151567

Files:
  llvm/lib/Support/Unix/Path.inc


Index: llvm/lib/Support/Unix/Path.inc
===================================================================
--- llvm/lib/Support/Unix/Path.inc
+++ llvm/lib/Support/Unix/Path.inc
@@ -14,7 +14,7 @@
 //=== WARNING: Implementation here must contain only generic UNIX code that
 //===          is guaranteed to work on *all* UNIX variants.
 //===----------------------------------------------------------------------===//
-#include <iostream> 
+
 #include "Unix.h"
 #include <limits.h>
 #include <stdio.h>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151567.546053.patch
Type: text/x-patch
Size: 499 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230801/9ae50c5a/attachment.bin>


More information about the cfe-commits mailing list