Fix a bug where we would compare array sizes with incompatible element types, and look through explicit casts.
rdar://44800168
Thanks for taking a look!
Paths
| Differential D57064
[Sema] Improve a -Warray-bounds diagnostic ClosedPublic Authored by erik.pilkington on Jan 22 2019, 12:43 PM.
Details Summary Fix a bug where we would compare array sizes with incompatible element types, and look through explicit casts. rdar://44800168 Thanks for taking a look!
Diff Detail
Event TimelineComment Actions LGTM with a testing request and some small nits.
This revision is now accepted and ready to land.Jan 23 2019, 5:53 AM erik.pilkington added inline comments.
Closed by commit rL352239: [Sema] Improve a -Warray-bounds diagnostic (authored by epilk). · Explain WhyJan 25 2019, 12:54 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 183604 cfe/trunk/include/clang/AST/ASTContext.h
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/lib/Sema/SemaExpr.cpp
cfe/trunk/test/Sema/static-array.c
|