aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/GlobalModuleIndex.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-10-25 19:00:49 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-10-25 19:00:49 +0000
commit1a3605cdbe807b2ffcc985b35e654bfb5a18cd40 (patch)
tree5e0179a875882983c6aaf9eb59a8f8c69188cbc8 /clang/lib/Serialization/GlobalModuleIndex.cpp
parent65cc969f5038d82c65c7f8cbaee30c8481971e38 (diff)
downloadllvm-1a3605cdbe807b2ffcc985b35e654bfb5a18cd40.zip
llvm-1a3605cdbe807b2ffcc985b35e654bfb5a18cd40.tar.gz
llvm-1a3605cdbe807b2ffcc985b35e654bfb5a18cd40.tar.bz2
I am about to change llvm::MemoryBuffer::getFile take take a Twine. Change
clang first so that the build still works. llvm-svn: 193428
Diffstat (limited to 'clang/lib/Serialization/GlobalModuleIndex.cpp')
-rw-r--r--clang/lib/Serialization/GlobalModuleIndex.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp
index 675804e..fb647b0b 100644
--- a/clang/lib/Serialization/GlobalModuleIndex.cpp
+++ b/clang/lib/Serialization/GlobalModuleIndex.cpp
@@ -229,7 +229,8 @@ GlobalModuleIndex::readIndex(StringRef Path) {
llvm::sys::path::append(IndexPath, IndexFileName);
llvm::OwningPtr<llvm::MemoryBuffer> Buffer;
- if (llvm::MemoryBuffer::getFile(IndexPath, Buffer) != llvm::errc::success)
+ if (llvm::MemoryBuffer::getFile(IndexPath.c_str(), Buffer) !=
+ llvm::errc::success)
return std::make_pair((GlobalModuleIndex *)0, EC_NotFound);
/// \brief The bitstream reader from which we'll read the AST file.