[LLVMbugs] [Bug 18895] New: clang\lib\basic\VirtualFileSystem.cpp compares enum to boolean

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 19 01:13:07 PST 2014


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

            Bug ID: 18895
           Summary: clang\lib\basic\VirtualFileSystem.cpp compares enum to
                    boolean
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: yaron.keren at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

bool Status::isOther() const {
  return Type == exists() && !isRegularFile() && !isDirectory() &&
!isSymlink();
}

Type is enum while exists() is boolean.

maybe the code should be

  return exists() && !isRegularFile() && !isDirectory() && !isSymlink();

-- 
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/20140219/12340f6b/attachment.html>


More information about the llvm-bugs mailing list