[Lldb-commits] [lldb] f819d25 - [lldb] Delete useless assertion

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 15 06:49:00 PDT 2020


Author: Pavel Labath
Date: 2020-07-15T15:42:53+02:00
New Revision: f819d257982e6c3f1fb57de4252b46bdfaa9415a

URL: https://github.com/llvm/llvm-project/commit/f819d257982e6c3f1fb57de4252b46bdfaa9415a
DIFF: https://github.com/llvm/llvm-project/commit/f819d257982e6c3f1fb57de4252b46bdfaa9415a.diff

LOG: [lldb] Delete useless assertion

It served a puprose while we were using the test name to provide a name
for the created file. Now that the files are created in memory, we don't
need that.

Added: 
    

Modified: 
    lldb/unittests/TestingSupport/TestUtilities.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/unittests/TestingSupport/TestUtilities.cpp b/lldb/unittests/TestingSupport/TestUtilities.cpp
index 4d369bd0968a..34f49e5862a7 100644
--- a/lldb/unittests/TestingSupport/TestUtilities.cpp
+++ b/lldb/unittests/TestingSupport/TestUtilities.cpp
@@ -27,8 +27,6 @@ std::string lldb_private::GetInputFilePath(const llvm::Twine &name) {
 }
 
 llvm::Expected<TestFile> TestFile::fromYaml(llvm::StringRef Yaml) {
-  assert(testing::UnitTest::GetInstance()->current_test_info());
-
   std::string Buffer;
   llvm::raw_string_ostream OS(Buffer);
   llvm::yaml::Input YIn(Yaml);


        


More information about the lldb-commits mailing list