|
@@ -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;
|