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
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index fd84454..54d0b1f 100644
--- a/lib/Format/Format.cpp
+++ b/lib/Format/Format.cpp
@@ -1428,7 +1428,8 @@
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;
}