[PATCH] D31839: make -Winteger-overflow find overflows in function arguments
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 11 21:44:08 PDT 2017
ahatanak added a comment.
OK, thanks for looking into it. Warnings for ObjCMessageExpr can probably be implemented in a separate patch.
It looks like clang still doesn't issue overflow warnings when the called functions have a void return. Should we try to fix it in this patch too?
void foo(int);
void test0() {
foo(4068 * 1024 * 1024); // no warnings
}
https://reviews.llvm.org/D31839
More information about the cfe-commits
mailing list