diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-25 19:00:49 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-25 19:00:49 +0000 |
| commit | 28ce23a550d386b32aa60abbbf308d164992eb1e (patch) | |
| tree | 71def43722031851dab4a34970e2dec324ecf606 /lib/Serialization/GlobalModuleIndex.cpp | |
| parent | 1a747829093ce59455685cdbe0aeff8d7b129d40 (diff) | |
| download | clang-28ce23a550d386b32aa60abbbf308d164992eb1e.tar.gz clang-28ce23a550d386b32aa60abbbf308d164992eb1e.tar.bz2 clang-28ce23a550d386b32aa60abbbf308d164992eb1e.tar.xz | |
I am about to change llvm::MemoryBuffer::getFile take take a Twine. Change
clang first so that the build still works.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193428 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/GlobalModuleIndex.cpp')
| -rw-r--r-- | lib/Serialization/GlobalModuleIndex.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Serialization/GlobalModuleIndex.cpp b/lib/Serialization/GlobalModuleIndex.cpp index 675804efd1..fb647b0be9 100644 --- a/lib/Serialization/GlobalModuleIndex.cpp +++ b/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. |
