[llvm-commits] [Patch] Update to APSInt
Richard Trieu
rtrieu at google.com
Tue Jul 17 16:04:49 PDT 2012
This patch adds missing operator== and operator!= to APSInt. Currently,
comparing two APSInt's will compare them with APInt's operator==, which
does not check signedness. This may lead to a problem where a large
unsigned APSInt will equal a negative APSInt, such as -1 and 0xffff.
One patch is to LLVM to add the functions. The other is to fix up the uses
in Clang.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120717/3686d0b1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: APSInt-clang.patch
Type: application/octet-stream
Size: 3464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120717/3686d0b1/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: APSInt-llvm.patch
Type: application/octet-stream
Size: 1338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120717/3686d0b1/attachment-0001.obj>
More information about the llvm-commits
mailing list