summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-08-27 19:03:27 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-08-27 19:03:27 +0000
commit85d7892459927bff81e2a0a0f7ddece5486c2c88 (patch)
tree087e3ccb8611d3929058a00ff228f1c7ad74f289 /clang/lib/Basic/VirtualFileSystem.cpp
parent68669e3a7b268b1769b17146c85ceda72a1da2bb (diff)
downloadbcm5719-llvm-85d7892459927bff81e2a0a0f7ddece5486c2c88.tar.gz
bcm5719-llvm-85d7892459927bff81e2a0a0f7ddece5486c2c88.zip
Update for llvm API change.
llvm-svn: 216576
Diffstat (limited to 'clang/lib/Basic/VirtualFileSystem.cpp')
-rw-r--r--clang/lib/Basic/VirtualFileSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/VirtualFileSystem.cpp b/clang/lib/Basic/VirtualFileSystem.cpp
index 0db8d31b25b..df446bbcd51 100644
--- a/clang/lib/Basic/VirtualFileSystem.cpp
+++ b/clang/lib/Basic/VirtualFileSystem.cpp
@@ -869,7 +869,7 @@ VFSFromYAML *VFSFromYAML::create(std::unique_ptr<MemoryBuffer> Buffer,
IntrusiveRefCntPtr<FileSystem> ExternalFS) {
SourceMgr SM;
- yaml::Stream Stream(std::move(Buffer), SM);
+ yaml::Stream Stream(Buffer->getMemBufferRef(), SM);
SM.setDiagHandler(DiagHandler, DiagContext);
yaml::document_iterator DI = Stream.begin();
OpenPOWER on IntegriCloud