Skip to content

Commit b8a387d

Browse files
committed
[LLDB][NFC] Fix a cppcheck warning in Python/Interfaces/ScriptedPythonInterface.h
Fix llvm#89195
1 parent ac40463 commit b8a387d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
8585
bool has_class_name = !class_name.empty();
8686
bool has_interpreter_dict =
8787
!(llvm::StringRef(m_interpreter.GetDictionaryName()).empty());
88-
if (!has_class_name && !has_interpreter_dict && !script_obj) {
88+
if (!has_class_name || !has_interpreter_dict || !script_obj) {
8989
if (!has_class_name)
9090
return create_error("Missing script class name.");
9191
else if (!has_interpreter_dict)

0 commit comments

Comments
 (0)