Skip to content

Commit 7d077a8

Browse files
committed
[llvm][clang] Fix downstream build failures after edd7fed
1 parent 7f00791 commit 7d077a8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clang/include/clang/Tooling/DependencyScanning/DependencyScanningCASFilesystem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class DependencyScanningCASFilesystem : public llvm::cas::ThreadSafeFileSystem {
5252
return FS->setCurrentWorkingDirectory(Path);
5353
}
5454
std::error_code getRealPath(const Twine &Path,
55-
SmallVectorImpl<char> &Output) const override {
55+
SmallVectorImpl<char> &Output) override {
5656
return FS->getRealPath(Path, Output);
5757
}
5858
std::error_code isLocal(const Twine &Path, bool &Result) override {

llvm/lib/CAS/CachingOnDiskFileSystem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class CachingOnDiskFileSystemImpl final : public CachingOnDiskFileSystem {
101101
}
102102

103103
std::error_code getRealPath(const Twine &Path,
104-
SmallVectorImpl<char> &Output) const final;
104+
SmallVectorImpl<char> &Output) final;
105105
ErrorOr<vfs::directory_iterator> getDirectoryIterator(const Twine &Dir);
106106

107107
std::error_code setCurrentWorkingDirectory(const Twine &Path) final;
@@ -455,7 +455,7 @@ CachingOnDiskFileSystemImpl::getDirectoryEntry(const Twine &Path,
455455

456456
std::error_code
457457
CachingOnDiskFileSystemImpl::getRealPath(const Twine &Path,
458-
SmallVectorImpl<char> &Output) const {
458+
SmallVectorImpl<char> &Output) {
459459
// We can get the real path, but it's not a const operation.
460460
const vfs::CachedDirectoryEntry *Entry = nullptr;
461461
if (Error E =

llvm/lib/Support/PrefixMappingFileSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class PrefixMappingFileSystem final : public ProxyFileSystem {
8888
}
8989

9090
std::error_code getRealPath(const Twine &Path,
91-
SmallVectorImpl<char> &Output) const override {
91+
SmallVectorImpl<char> &Output) override {
9292
PREFIX_MAP_PATH(Path, MappedPath)
9393
return ProxyFileSystem::getRealPath(MappedPath, Output);
9494
}

0 commit comments

Comments
 (0)