Eliminate an unnecessary .c_str()

llvm-svn: 194228
This commit is contained in:
Douglas Gregor 2013-11-08 00:38:03 +00:00
parent 8b1265b353
commit 688b6c01ce
1 changed files with 1 additions and 1 deletions

View File

@ -1791,7 +1791,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.c_str(), buffer)) {
if (!llvm::MemoryBuffer::getFile(systemVersionFile.str(), buffer)) {
code = hash_combine(code, buffer.get()->getBuffer());
struct stat statBuf;