[fs] Make sure to check S_ISLNK() in fillStatus.

llvm-svn: 297167
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index 05636f8..76e1ed2 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -500,6 +500,8 @@
     Type = file_type::fifo_file;
   else if (S_ISSOCK(Status.st_mode))
     Type = file_type::socket_file;
+  else if (S_ISLNK(Status.st_mode))
+    Type = file_type::symlink_file;
 
   perms Perms = static_cast<perms>(Status.st_mode);
   Result =