summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/Editline.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-03-19 06:00:31 +0000
committerZachary Turner <zturner@google.com>2017-03-19 06:00:31 +0000
commit6c8255e831b497e9b65c5a2220d56baabfa15ddc (patch)
treea6c2859fda0f3746bef82007b8ff565158e7fafc /lldb/source/Host/common/Editline.cpp
parent6934e0aaa7fa1f081a43e3ceea4c7a865ba015ce (diff)
downloadbcm5719-llvm-6c8255e831b497e9b65c5a2220d56baabfa15ddc.tar.gz
bcm5719-llvm-6c8255e831b497e9b65c5a2220d56baabfa15ddc.zip
Fix syntax error when building with editline support.
llvm-svn: 298206
Diffstat (limited to 'lldb/source/Host/common/Editline.cpp')
-rw-r--r--lldb/source/Host/common/Editline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/common/Editline.cpp b/lldb/source/Host/common/Editline.cpp
index f8339d8e599..abaf4c91125 100644
--- a/lldb/source/Host/common/Editline.cpp
+++ b/lldb/source/Host/common/Editline.cpp
@@ -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 {
OpenPOWER on IntegriCloud