Fix syntax error when building with editline support.

llvm-svn: 298206
This commit is contained in:
Zachary Turner 2017-03-19 06:00:31 +00:00
parent 6934e0aaa7
commit 6c8255e831

View File

@ -178,7 +178,7 @@ private:
if (m_path.empty() && m_history && !m_prefix.empty()) {
FileSpec parent_path{"~/.lldb", true};
char history_path[PATH_MAX];
if (!llvm::sys::fs::create_directory(parent_path.GetPath()) {
if (!llvm::sys::fs::create_directory(parent_path.GetPath())) {
snprintf(history_path, sizeof(history_path), "~/.lldb/%s-history",
m_prefix.c_str());
} else {