mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Catch up with upstream changes in llvm.
This commit is contained in:
committed by
Davidino
parent
1983452e9f
commit
118962b034
@@ -915,7 +915,7 @@ void ASTProducer::findSnapshotAndOpenFiles(
|
||||
LOG_WARN_FUNC("failed getting file contents for " << File << ": "
|
||||
<< Error);
|
||||
// File may not exist, continue and recover as if it was empty.
|
||||
Content.Buffer = llvm::MemoryBuffer::getNewMemBuffer(0, File);
|
||||
Content.Buffer = llvm::WritableMemoryBuffer::getNewMemBuffer(0, File);
|
||||
}
|
||||
Contents.push_back(std::move(Content));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user