summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandCompletions.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2011-07-08 00:38:03 +0000
committerJason Molenda <jmolenda@apple.com>2011-07-08 00:38:03 +0000
commitd9761cd4662c058951945250fb5a0c5973890a9e (patch)
treedf714e819a09378178b3a94b1a4c277f0df08c0c /lldb/source/Commands/CommandCompletions.cpp
parent8ccd65842db2fcf6d72cda3dc58a5dc6fdd7d5d2 (diff)
downloadbcm5719-llvm-d9761cd4662c058951945250fb5a0c5973890a9e.tar.gz
bcm5719-llvm-d9761cd4662c058951945250fb5a0c5973890a9e.zip
Switch to using the S_ISDIR and S_ISREG sys/stat.h macros in
CommandCompletions.cpp and DataBufferMemoryMap.cpp. The file type part of the st_mode struct member is not a bitmask. llvm-svn: 134669
Diffstat (limited to 'lldb/source/Commands/CommandCompletions.cpp')
-rw-r--r--lldb/source/Commands/CommandCompletions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandCompletions.cpp b/lldb/source/Commands/CommandCompletions.cpp
index f1168908590..ff3c0c40733 100644
--- a/lldb/source/Commands/CommandCompletions.cpp
+++ b/lldb/source/Commands/CommandCompletions.cpp
@@ -272,7 +272,7 @@ DiskFilesOrDirectories
else if (dirent_buf->d_type & DT_LNK)
{
struct stat stat_buf;
- if ((stat(partial_name_copy, &stat_buf) == 0) && (stat_buf.st_mode & S_IFDIR))
+ if ((stat(partial_name_copy, &stat_buf) == 0) && S_ISDIR(stat_buf.st_mode))
isa_directory = true;
}
OpenPOWER on IntegriCloud