aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Utility/Reproducer.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-05-23 05:45:49 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-05-23 05:45:49 +0000
commit202dc1291eae2add93207cbf788a64f4341b1c59 (patch)
tree649c70b77357be353f48f80ab18937793a6c4996 /lldb/source/Utility/Reproducer.cpp
parent24374aef1b108028fdc588aa06c66b0d813d112a (diff)
downloadllvm-202dc1291eae2add93207cbf788a64f4341b1c59.tar.gz
llvm-202dc1291eae2add93207cbf788a64f4341b1c59.tar.bz2
llvm-202dc1291eae2add93207cbf788a64f4341b1c59.zip
[Reproducer] Pass FileSpec by const-ref. (NFC)
Fix two functions where we were passing FileSpecs by value, while we could pass by const reference. llvm-svn: 361459
Diffstat (limited to 'lldb/source/Utility/Reproducer.cpp')
-rw-r--r--lldb/source/Utility/Reproducer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Utility/Reproducer.cpp b/lldb/source/Utility/Reproducer.cpp
index 967521c4364a..f5ca39cddc77 100644
--- a/lldb/source/Utility/Reproducer.cpp
+++ b/lldb/source/Utility/Reproducer.cpp
@@ -221,7 +221,7 @@ bool Loader::HasFile(StringRef file) {
}
llvm::Expected<std::unique_ptr<DataRecorder>>
-DataRecorder::Create(FileSpec filename) {
+DataRecorder::Create(const FileSpec &filename) {
std::error_code ec;
auto recorder = llvm::make_unique<DataRecorder>(std::move(filename), ec);
if (ec)