Update for upstream LLVM changes is MemoryBuffer APIs

Swift SVN r21409
This commit is contained in:
Dmitri Hrybenko
2014-08-22 08:28:03 +00:00
parent e45fe991b0
commit 42b25d939d
7 changed files with 39 additions and 36 deletions

View File

@@ -92,7 +92,7 @@ static const char *skipStringInCode(const char *p, const char *End) {
SourceCompleteResult
ide::isSourceInputComplete(std::unique_ptr<llvm::MemoryBuffer> MemBuf) {
SourceManager SM;
auto BufferID = SM.addNewSourceBuffer(MemBuf.release());
auto BufferID = SM.addNewSourceBuffer(std::move(MemBuf));
ParserUnit Parse(SM, BufferID);
Parser &P = Parse.getParser();