summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectReproducer.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2019-01-29 22:55:21 +0000
committerZachary Turner <zturner@google.com>2019-01-29 22:55:21 +0000
commit52f8f34377452f8f2bce38b5add360f9dd84c95d (patch)
treedd88eb6f9f401c21f26cc9415aa926b29e68a6dd /lldb/source/Commands/CommandObjectReproducer.cpp
parent7d2192ca7b9957cbc8968b792a7cfa49acefeaba (diff)
downloadbcm5719-llvm-52f8f34377452f8f2bce38b5add360f9dd84c95d.tar.gz
bcm5719-llvm-52f8f34377452f8f2bce38b5add360f9dd84c95d.zip
Fix some warnings in building LLDB.
Differential Revision: https://reviews.llvm.org/D57413 llvm-svn: 352557
Diffstat (limited to 'lldb/source/Commands/CommandObjectReproducer.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectReproducer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectReproducer.cpp b/lldb/source/Commands/CommandObjectReproducer.cpp
index a8e3569f6bc..7d2b7ede9a5 100644
--- a/lldb/source/Commands/CommandObjectReproducer.cpp
+++ b/lldb/source/Commands/CommandObjectReproducer.cpp
@@ -67,12 +67,11 @@ protected:
}
auto &r = repro::Reproducer::Instance();
- if (auto generator = r.GetGenerator()) {
+ if (r.GetGenerator()) {
result.GetOutputStream() << "Reproducer is in capture mode.\n";
- } else if (auto generator = r.GetLoader()) {
+ } else if (r.GetLoader()) {
result.GetOutputStream() << "Reproducer is in replay mode.\n";
} else {
-
result.GetOutputStream() << "Reproducer is off.\n";
}
OpenPOWER on IntegriCloud