[LLVMbugs] [Bug 20589] New: trunk/llvm/lib/Object/MachOObjectFile.cpp:1403: possible cut'n'paste error ?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 8 01:46:37 PDT 2014


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

            Bug ID: 20589
           Summary: trunk/llvm/lib/Object/MachOObjectFile.cpp:1403:
                    possible cut'n'paste error ?
           Product: new-bugs
           Version: trunk
          Hardware: Other
                OS: Linux
            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

[trunk/llvm/lib/Object/MachOObjectFile.cpp:1403]: (style) Expression is always
false because 'else if' condition matches previous condition at line 1401.

  else if (ArchFlag == "armv7k")
    return Triple("armv7k-apple-darwin");
  else if (ArchFlag == "armv7k")
    return Triple("armv7m-apple-darwin");

maybe better code

  else if (ArchFlag == "armv7k")
    return Triple("armv7k-apple-darwin");
  else if (ArchFlag == "armv7m")
    return Triple("armv7m-apple-darwin");

-- 
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/20140808/04a44faf/attachment.html>


More information about the llvm-bugs mailing list