[llvm-bugs] [Bug 30648] New: llvm/tools/clang/lib/Serialization/ASTReader.cpp:4186: suspicious code ?

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Oct 9 14:24:05 PDT 2016


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

            Bug ID: 30648
           Summary: llvm/tools/clang/lib/Serialization/ASTReader.cpp:4186:
                    suspicious code ?
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

llvm/tools/clang/lib/Serialization/ASTReader.cpp:4186:1: error: V590 Consider
inspecting this expression. The expression is excessive or contains a misprint.

Source code is

    if (Entry.Kind == llvm::BitstreamEntry::EndBlock ||
        Entry.Kind != llvm::BitstreamEntry::Record)
      return 0;

Suggest code rework.

-- 
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/20161009/583732ba/attachment.html>


More information about the llvm-bugs mailing list