[SourceKit] Catch up with upstream changes in llvm.

This commit is contained in:
Davide Italiano
2018-01-16 11:24:51 -08:00
committed by Davidino
parent 1983452e9f
commit 118962b034
2 changed files with 2 additions and 2 deletions

View File

@@ -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));
}