[Lldb-commits] [lldb] 368eb77 - Fix a -Wunused-variable warning.
Eric Christopher via lldb-commits
lldb-commits at lists.llvm.org
Tue Jul 14 12:41:13 PDT 2020
Author: Eric Christopher
Date: 2020-07-14T12:40:56-07:00
New Revision: 368eb7712f9f19f93f3e318d8b16e732436fb9c4
URL: https://github.com/llvm/llvm-project/commit/368eb7712f9f19f93f3e318d8b16e732436fb9c4
DIFF: https://github.com/llvm/llvm-project/commit/368eb7712f9f19f93f3e318d8b16e732436fb9c4.diff
LOG: Fix a -Wunused-variable warning.
Added:
Modified:
lldb/unittests/TestingSupport/TestUtilities.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/TestingSupport/TestUtilities.cpp b/lldb/unittests/TestingSupport/TestUtilities.cpp
index 28120505acba..4d369bd0968a 100644
--- a/lldb/unittests/TestingSupport/TestUtilities.cpp
+++ b/lldb/unittests/TestingSupport/TestUtilities.cpp
@@ -27,8 +27,7 @@ std::string lldb_private::GetInputFilePath(const llvm::Twine &name) {
}
llvm::Expected<TestFile> TestFile::fromYaml(llvm::StringRef Yaml) {
- const auto *Info = testing::UnitTest::GetInstance()->current_test_info();
- assert(Info);
+ assert(testing::UnitTest::GetInstance()->current_test_info());
std::string Buffer;
llvm::raw_string_ostream OS(Buffer);
More information about the lldb-commits
mailing list