summaryrefslogtreecommitdiff
path: root/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-10-25 19:00:49 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-10-25 19:00:49 +0000
commit28ce23a550d386b32aa60abbbf308d164992eb1e (patch)
tree71def43722031851dab4a34970e2dec324ecf606 /lib/Format/Format.cpp
parent1a747829093ce59455685cdbe0aeff8d7b129d40 (diff)
downloadclang-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/Format/Format.cpp')
-rw-r--r--lib/Format/Format.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index fd84454d90..54d0b1f5e2 100644
--- a/lib/Format/Format.cpp
+++ b/lib/Format/Format.cpp
@@ -1428,7 +1428,8 @@ FormatStyle getStyle(StringRef StyleName, StringRef FileName) {
if (IsFile) {
OwningPtr<llvm::MemoryBuffer> Text;
- if (llvm::error_code ec = llvm::MemoryBuffer::getFile(ConfigFile, Text)) {
+ if (llvm::error_code ec =
+ llvm::MemoryBuffer::getFile(ConfigFile.c_str(), Text)) {
llvm::errs() << ec.message() << "\n";
continue;
}