I am about to change llvm::MemoryBuffer::getFile take take a Twine. Change

clang first so that the build still works.

llvm-svn: 193428
This commit is contained in:
Rafael Espindola
2013-10-25 19:00:49 +00:00
parent 65cc969f50
commit 1a3605cdbe
3 changed files with 5 additions and 3 deletions

View File

@@ -1780,7 +1780,7 @@ std::string CompilerInvocation::getModuleHash() const {
llvm::sys::path::append(systemVersionFile, "Library");
llvm::sys::path::append(systemVersionFile, "CoreServices");
llvm::sys::path::append(systemVersionFile, "SystemVersion.plist");
if (!llvm::MemoryBuffer::getFile(systemVersionFile, buffer)) {
if (!llvm::MemoryBuffer::getFile(systemVersionFile.c_str(), buffer)) {
code = hash_combine(code, buffer.get()->getBuffer());
struct stat statBuf;