[PATCH] D25597: Try to fix buildbot failure in VirtualFileSystem caused by r284129.

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 14 18:40:40 PDT 2016


bruno added a comment.

Looks that somehow the current directory doesn't exit anymore OR it's non empty but only contains spaces or something like that. Besides the snippet below, RedirectingFileSystem::lookupPath(llvm::Twine const&) also calls `makeAbsolute` before `remove_dots`. Can you try to print `FileSystemOpts.WorkingDir`?

                                                                                                                                                                                                                             
  bool FileManager::getStatValue(StringRef Path, FileData &Data, bool isFile,                                                                                                                                                                                                   
                               std::unique_ptr<vfs::File> *F) {                                                                                                                                                                                                               
  // FIXME: FileSystemOpts shouldn't be passed in here, all paths should be                                                                                                                                                                                                   
  // absolute!                                                                                                                                                                                                                                                                
  if (FileSystemOpts.WorkingDir.empty())                                                                                                                                                                                                                                      
    return FileSystemStatCache::get(Path, Data, isFile, F,StatCache.get(), *FS);                                                                                                                                                                                              
                                                                                                                                                                                                                                                                              
  SmallString<128> FilePath(Path);                                                                                                                                                                                                                                            
  FixupRelativePath(FilePath);                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                              
  return FileSystemStatCache::get(FilePath.c_str(), Data, isFile, F,                                                                                                                                                                                                          
                                  StatCache.get(), *FS);                                                                                                                                                                                                                      

}


https://reviews.llvm.org/D25597





More information about the cfe-commits mailing list