[llvm-bugs] [Bug 25654] New: Clang compilation warning: C > UCHAR_MAX is always false
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Nov 26 13:57:58 PST 2015
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: unassignedbugs at nondot.org
Reporter: idenx at yandex.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151126/f73c6423/attachment.html>
More information about the llvm-bugs
mailing list