mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Propagate llvm::vfs::FileSystem from driver_env to Clang (#4537)
As discussed in #4530 . This required switching to using `llvm::IntrusiveRefCntPtr` in a number of places. --------- Co-authored-by: Josh L <josh11b@users.noreply.github.com>
This commit is contained in:
@@ -364,7 +364,7 @@ class CompilationUnit {
|
||||
// Loads source and lexes it. Returns true on success.
|
||||
auto RunLex() -> void {
|
||||
LogCall("SourceBuffer::MakeFromFileOrStdin", "source", [&] {
|
||||
source_ = SourceBuffer::MakeFromFileOrStdin(driver_env_->fs,
|
||||
source_ = SourceBuffer::MakeFromFileOrStdin(*driver_env_->fs,
|
||||
input_filename_, *consumer_);
|
||||
});
|
||||
if (mem_usage_) {
|
||||
|
||||
Reference in New Issue
Block a user