summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorVince Harron <vharron@google.com>2015-02-24 05:24:12 +0000
committerVince Harron <vharron@google.com>2015-02-24 05:24:12 +0000
commitf7839220ee6d4fe300a615597086dd1338865d3f (patch)
tree0f00b4c2cdf2a212631432e66c895ea0a06e33f4 /lldb
parent294aeb9a408d32298fbc18d1d91653cfc954309b (diff)
downloadbcm5719-llvm-f7839220ee6d4fe300a615597086dd1338865d3f.tar.gz
bcm5719-llvm-f7839220ee6d4fe300a615597086dd1338865d3f.zip
Fix typo that breaks FileSystem::IsLocal
llvm-svn: 230312
Diffstat (limited to 'lldb')
-rw-r--r--lldb/source/Host/posix/FileSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/posix/FileSystem.cpp b/lldb/source/Host/posix/FileSystem.cpp
index ee41b0cfba0..a78c628615c 100644
--- a/lldb/source/Host/posix/FileSystem.cpp
+++ b/lldb/source/Host/posix/FileSystem.cpp
@@ -203,7 +203,7 @@ FileSystem::IsLocal(const FileSpec &spec)
{
struct statfs statfs_info;
std::string path (spec.GetPath());
- if (statfs(path.c_str(), &statfs_info) != 0)
+ if (statfs(path.c_str(), &statfs_info) == 0)
return ::IsLocal(statfs_info);
return false;
}
OpenPOWER on IntegriCloud