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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to