Skip to content

lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp:509: Pointless test ? #91223

Closed
@dcb314

Description

@dcb314

Static analyser cppcheck says:

lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp:509:25: style: Expression is always true because 'else if' condition is opposite to previous condition at line 505. [multiCondition]

Source code is

if (watch_mask > 0x04)
....
else if (watch_mask <= 0x04)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions