summaryrefslogtreecommitdiffstats
path: root/clang/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
commit1a3605cdbe807b2ffcc985b35e654bfb5a18cd40 (patch)
tree5e0179a875882983c6aaf9eb59a8f8c69188cbc8 /clang/lib/Format/Format.cpp
parent65cc969f5038d82c65c7f8cbaee30c8481971e38 (diff)
downloadbcm5719-llvm-1a3605cdbe807b2ffcc985b35e654bfb5a18cd40.tar.gz
bcm5719-llvm-1a3605cdbe807b2ffcc985b35e654bfb5a18cd40.zip
I am about to change llvm::MemoryBuffer::getFile take take a Twine. Change
clang first so that the build still works. llvm-svn: 193428
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r--clang/lib/Format/Format.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index fd84454d907..54d0b1f5e2a 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud