diff options
Diffstat (limited to 'clang/lib/Format')
| -rw-r--r-- | clang/lib/Format/Format.cpp | 3 |
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; } |

