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

            Bug ID: 28730
           Summary: trunk/llvm/lib/Transforms/Scalar/GVNHoist.cpp:77:
                    suspicious assert ?
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: dcb...@hotmail.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

trunk/llvm/lib/Transforms/Scalar/GVNHoist.cpp:77]: (style) Same expression on
both sides of '&&'.

Source code is

    unsigned ADFS = DFSNumber.lookup(A);
    unsigned BDFS = DFSNumber.lookup(B);
    assert (ADFS && ADFS);

Maybe better code

    unsigned ADFS = DFSNumber.lookup(A);
    unsigned BDFS = DFSNumber.lookup(B);
    assert (ADFS && BDFS);

According to svn blame, account spop wrote this code.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to