diff options
Diffstat (limited to 'lldb/source/Symbol/ObjectFile.cpp')
-rw-r--r-- | lldb/source/Symbol/ObjectFile.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Symbol/ObjectFile.cpp b/lldb/source/Symbol/ObjectFile.cpp index 63b48759d84..86c18c7beb0 100644 --- a/lldb/source/Symbol/ObjectFile.cpp +++ b/lldb/source/Symbol/ObjectFile.cpp @@ -588,9 +588,7 @@ bool ObjectFile::SplitArchivePathWithObject(const char *path_with_object, regex_match.GetMatchAtIndex(path_with_object, 2, obj)) { archive_file.SetFile(path, FileSpec::Style::native); archive_object.SetCString(obj.c_str()); - if (must_exist && !FileSystem::Instance().Exists(archive_file)) - return false; - return true; + return !(must_exist && !FileSystem::Instance().Exists(archive_file)); } } return false; |