summaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-11-08 00:38:03 +0000
committerDouglas Gregor <dgregor@apple.com>2013-11-08 00:38:03 +0000
commit8442b6f8b8dccb334751a2836a8454229ebec1b0 (patch)
tree6c4a6f6fd0a507cca5b7980c2ce7c772600509ed /lib/Frontend/CompilerInvocation.cpp
parentfa8e7d344fc6ac9bf464419cc9cc2743b5036047 (diff)
downloadclang-8442b6f8b8dccb334751a2836a8454229ebec1b0.tar.gz
clang-8442b6f8b8dccb334751a2836a8454229ebec1b0.tar.bz2
clang-8442b6f8b8dccb334751a2836a8454229ebec1b0.tar.xz
Eliminate an unnecessary .c_str()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp
index c1999e84c4..98745aca68 100644
--- a/lib/Frontend/CompilerInvocation.cpp
+++ b/lib/Frontend/CompilerInvocation.cpp
@@ -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;