diff options
author | Shivam Gupta <shivam98.tkg@gmail.com> | 2024-07-25 16:59:39 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 16:59:39 +0530 |
commit | 2ba3fe7356f065757a2279f65e4ef5c8f1476293 (patch) | |
tree | a34d08c818dab35dca3055675eef32abc1d2aae6 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | f8006a5932b1ccdf3a1eed7b20b5cb608c0a020c (diff) | |
download | llvm-2ba3fe7356f065757a2279f65e4ef5c8f1476293.zip llvm-2ba3fe7356f065757a2279f65e4ef5c8f1476293.tar.gz llvm-2ba3fe7356f065757a2279f65e4ef5c8f1476293.tar.bz2 |
[lldb] Fix incorrect uses of logical operator in 'if' condition check (NFC) (#94779)
The condition checking for missing class name, interpreter dictionary,
and script object incorrectly used logical AND (&&), which could never
be true to enter the 'if' block.
This commit uses separate if conditions for each class name, interpreter
dictionary, and script object.
Cought by cppcheck -
lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h:89:11:
warning: Identical inner 'if' condition is always true.
[identicalInnerCondition]
lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h:91:16:
warning: Identical inner 'if' condition is always true.
[identicalInnerCondition]
Fix #89195
---------
Co-authored-by: Shivam Gupta <shivma98.tkg@gmail.com>
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions