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.
APSInt-clang.patch
Description: Binary data
APSInt-llvm.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
