[LLVMbugs] [Bug 18208] New: SelectionDAGBuilder.cpp:4306: possible bad if test ?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 11 00:38:16 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=18208

            Bug ID: 18208
           Summary: SelectionDAGBuilder.cpp:4306: possible bad if test ?
           Product: new-bugs
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I just ran the static analyser "cppcheck" over some
of the llvm trunk code. It said many things, including

[lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:4306]: (style) Same
expression on both sides of '&&'.

Source code is

  if (LHS.getValueType() == MVT::f32 && LHS.getValueType() == MVT::f32 &&

Maybe the original intention was

  if (LHS.getValueType() == MVT::f32 && RHS.getValueType() == MVT::f32 &&

-- 
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/20131211/565e641a/attachment.html>


More information about the llvm-bugs mailing list