diff options
author | Zachary Turner <zturner@google.com> | 2017-03-13 02:44:39 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-03-13 02:44:39 +0000 |
commit | 1f8753479e36d4fe30e9d252ec380bfaa670493f (patch) | |
tree | 5bdaa5644ddee6fd75a1ad063f1141a03c7d85a9 /lldb/source/Commands/CommandCompletions.cpp | |
parent | 2cc5a18dc26145119c03a6ab3f5759906b16b34c (diff) | |
download | bcm5719-llvm-1f8753479e36d4fe30e9d252ec380bfaa670493f.tar.gz bcm5719-llvm-1f8753479e36d4fe30e9d252ec380bfaa670493f.zip |
Use LLVM for file / directory enumeration.
FileSpec::EnumerateDirectory has a bunch of platform-specific
gunk in it for posix and non-posix platforms. We can get rid
of all this by using LLVM's easy-to-use directory iterators.
Differential Revision: https://reviews.llvm.org/D30807
llvm-svn: 297598
Diffstat (limited to 'lldb/source/Commands/CommandCompletions.cpp')
-rw-r--r-- | lldb/source/Commands/CommandCompletions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandCompletions.cpp b/lldb/source/Commands/CommandCompletions.cpp index 16e4de017d5..34b7d78bd6a 100644 --- a/lldb/source/Commands/CommandCompletions.cpp +++ b/lldb/source/Commands/CommandCompletions.cpp @@ -195,7 +195,7 @@ static int DiskFilesOrDirectories(const llvm::Twine &partial_name, // We have a match. fs::file_status st; - if (EC = Entry.status(st)) + if ((EC = Entry.status(st))) continue; // If it's a symlink, then we treat it as a directory as long as the target |