Revert "[lldb] Fix incorrect logical operator in 'if' condition check (NFC)" (#100561)

Reverts llvm/llvm-project#94779

Due to bot failures:
https://lab.llvm.org/buildbot/#/builders/18/builds/1371
This commit is contained in:
David Spickett 2024-07-25 13:18:11 +01:00 committed by GitHub
parent f916cb6184
commit a466db2b32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,15 +85,14 @@ public:
bool has_class_name = !class_name.empty();
bool has_interpreter_dict =
!(llvm::StringRef(m_interpreter.GetDictionaryName()).empty());
if (!has_class_name)
return create_error("Missing script class name.");
if (!has_interpreter_dict)
return create_error("Invalid script interpreter dictionary.");
if (!script_obj)
return create_error("Missing scripting object.");
if (!has_class_name && !has_interpreter_dict && !script_obj) {
if (!has_class_name)
return create_error("Missing script class name.");
else if (!has_interpreter_dict)
return create_error("Invalid script interpreter dictionary.");
else
return create_error("Missing scripting object.");
}
Locker py_lock(&m_interpreter, Locker::AcquireLock | Locker::NoSTDIN,
Locker::FreeLock);