[PATCH] D31839: make -Winteger-overflow find overflows in function arguments
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 10 12:02:54 PDT 2017
ahatanak added a comment.
Is it possible to fix ObjCMessageExpr too while you are in here?
I think clang should issue a warning when compiling the following code:
@protocol NSObject
@end
@interface NSObject<NSObject>
@end
@interface C1 : NSObject
- (void)foo:(int)i;
@end
@implementation C1
- (void)foo:(int)i {
}
@end
void test1(C1 *c) {
[c foo:(4068 * 1024 * 1024)];
}
https://reviews.llvm.org/D31839
More information about the cfe-commits
mailing list