[llvm-bugs] [Bug 47107] New: LHS and RHS of a logical binary-operator (&&, ||), relational/equality binary-operator expression should not contain the same sub-expression.(llvm-project/llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp:line 182 and184)

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 11 00:20:00 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47107

            Bug ID: 47107
           Summary: LHS and RHS of a logical binary-operator (&&, ||),
                    relational/equality binary-operator expression should
                    not contain the same
                    sub-expression.(llvm-project/llvm/tools/llvm-objcopy/M
                    achO/MachOObjcopy.cpp:line 182 and184)
           Product: tools
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-objcopy/strip
          Assignee: unassignedbugs at nondot.org
          Reporter: info at ustchcs.com
                CC: alexander.v.shaposhnikov at gmail.com,
                    jake.h.ehrlich at gmail.com,
                    jh7370.2008 at my.bristol.ac.uk,
                    llvm-bugs at lists.llvm.org, rupprecht at google.com

LHS and RHS of a logical binary-operator (&&, ||), relational/equality
binary-operator expression should not contain the same sub-expression.

Config.StripSections appears twice on line 182 and 183. And
Config.StripNonAlloc appears twice on line 181 and 183.

commit e3546c78cabfbf670391a57766872f0a8e28a423

llvm-project/llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp:line 181<-->183

   181        Config.StripAllGNU || Config.StripDWO || Config.StripNonAlloc ||
   182        Config.StripSections || Config.Weaken ||
Config.DecompressDebugSections ||
   183        Config.StripNonAlloc || Config.StripSections ||
Config.StripUnneeded ||

Reported by: Ustchcs Toolsets Bugfinder
(bugfinder-2.3: LHS and RHS of a logical binary-operator (&&, ||),
relational/equality binary-operator expression should not contain the same
sub-expression.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200811/90e632ac/attachment.html>


More information about the llvm-bugs mailing list