diff options
author | Kadir Cetinkaya <kadircet@google.com> | 2024-11-21 13:04:30 +0100 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2024-11-21 14:55:30 +0100 |
commit | df9a14d7bbf1180e4f1474254c9d7ed6bcb4ce55 (patch) | |
tree | 4f440ad02ebb7990fda10120328a833459b1ab89 /lldb/source/Commands/CommandObjectTarget.cpp | |
parent | d800ea7cb12245f65f886e18545ba83355825246 (diff) | |
download | llvm-df9a14d7bbf1180e4f1474254c9d7ed6bcb4ce55.zip llvm-df9a14d7bbf1180e4f1474254c9d7ed6bcb4ce55.tar.gz llvm-df9a14d7bbf1180e4f1474254c9d7ed6bcb4ce55.tar.bz2 |
Reapply "[NFC] Explicitly pass a VFS when creating DiagnosticsEngine (#115852)"
This reverts commit a1153cd6fedd4c906a9840987934ca4712e34cb2 with fixes
to lldb breakages.
Fixes https://github.com/llvm/llvm-project/issues/117145.
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectTarget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp index 6c870bb..307f4f6 100644 --- a/lldb/source/Commands/CommandObjectTarget.cpp +++ b/lldb/source/Commands/CommandObjectTarget.cpp @@ -2200,7 +2200,7 @@ protected: } clang::CompilerInstance compiler; - compiler.createDiagnostics(); + compiler.createDiagnostics(*FileSystem::Instance().GetVirtualFileSystem()); const char *clang_args[] = {"clang", pcm_path}; compiler.setInvocation(clang::createInvocation(clang_args)); |