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

            Bug ID: 25654
           Summary: Clang compilation warning: C > UCHAR_MAX is always
                    false
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: id...@yandex.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

lib/ProfileData/InstrProf.cpp:
if (C > UCHAR_MAX)
    C = UCHAR_MAX;
Here is compiler (gcc 4.9.2) warning during compilation of clang from trunk
that it's always false comparison. And it's true, because C declared as
uint8_t.
I can make a fix myself, if I understand it correctly.

-- 
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