From ef165ac53e9511bb980ed0248d65762bb1d0ac2e Mon Sep 17 00:00:00 2001 From: Ben Langmuir Date: Wed, 5 Mar 2014 15:25:59 +0000 Subject: [PATCH] Use ThreadSafeRefCountedBase for vfs::FileSystem Allow trivial read-only filesystems such as RealFileSystem to be shared between threads. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202986 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/VirtualFileSystem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clang/Basic/VirtualFileSystem.h b/include/clang/Basic/VirtualFileSystem.h index 3d33c630fe..4c5f5a7f65 100644 --- a/include/clang/Basic/VirtualFileSystem.h +++ b/include/clang/Basic/VirtualFileSystem.h @@ -95,7 +95,7 @@ public: }; /// \brief The virtual file system interface. -class FileSystem : public RefCountedBase { +class FileSystem : public llvm::ThreadSafeRefCountedBase { public: virtual ~FileSystem(); -- 2.40.0