diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/LineEditor/LineEditor.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/LineEditor/LineEditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/LineEditor/LineEditor.cpp b/contrib/llvm-project/llvm/lib/LineEditor/LineEditor.cpp index bb408411a330..d0d138bb1f9d 100644 --- a/contrib/llvm-project/llvm/lib/LineEditor/LineEditor.cpp +++ b/contrib/llvm-project/llvm/lib/LineEditor/LineEditor.cpp @@ -25,7 +25,7 @@ std::string LineEditor::getDefaultHistoryPath(StringRef ProgName) { SmallString<32> Path; if (sys::path::home_directory(Path)) { sys::path::append(Path, "." + ProgName + "-history"); - return std::string(Path.str()); + return std::string(Path); } return std::string(); } |