[Lldb-commits] [lldb] b934ed7 - revert "[lldb/Host] Fix crash in FileSystem::IsLocal"

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 4 13:37:46 PST 2022


Author: Med Ismail Bennani
Date: 2022-03-04T13:36:36-08:00
New Revision: b934ed7dd6351404d375af2f996af8a49ea36c7b

URL: https://github.com/llvm/llvm-project/commit/b934ed7dd6351404d375af2f996af8a49ea36c7b
DIFF: https://github.com/llvm/llvm-project/commit/b934ed7dd6351404d375af2f996af8a49ea36c7b.diff

LOG: revert "[lldb/Host] Fix crash in FileSystem::IsLocal"

This reverts commit 2dc6e906b09deb092c15a726c06d0ecbeec1eb18 following
changes introduced in 59eb70527741594fe3c92d0a1b6704ed45111437.

Added: 
    

Modified: 
    lldb/source/Host/common/FileSystem.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Host/common/FileSystem.cpp b/lldb/source/Host/common/FileSystem.cpp
index 2367a641e9350..358274e9d2fb1 100644
--- a/lldb/source/Host/common/FileSystem.cpp
+++ b/lldb/source/Host/common/FileSystem.cpp
@@ -171,8 +171,7 @@ bool FileSystem::IsDirectory(const FileSpec &file_spec) const {
 
 bool FileSystem::IsLocal(const Twine &path) const {
   bool b = false;
-  if (m_fs)
-    m_fs->isLocal(path, b);
+  m_fs->isLocal(path, b);
   return b;
 }
 


        


More information about the lldb-commits mailing list