Fixed crash when doing pointer math on a void pointer.
Also, reworked test to use -verify rather than FileCheck.
| Paths 
 |  Differential  D104424  
[Sema] Fix for PR50741 ClosedPublic Authored by chrish_ericsson_atx on Jun 16 2021, 3:18 PM. 
Details 
 Summary Fixed crash when doing pointer math on a void pointer. Also, reworked test to use -verify rather than FileCheck. 
Diff Detail 
 Event Timelinechrish_ericsson_atx created this revision. Comment Actions Two small changes to the test that you can do as a part of committing. Thanks! 
 This revision is now accepted and ready to land.Jun 16 2021, 4:46 PM Comment Actions Thanks for the hints, @erichkeane ! Especially thanks for pointing out the root cause early on. This revision was landed with ongoing or failed builds.Jun 17 2021, 7:17 AM Closed by commit rGfc6ec9b98cf9: [Sema] Fix for PR50741 (authored by chrish_ericsson_atx).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 352568 clang/lib/Sema/SemaChecking.cpp
 
 clang/test/Sema/unbounded-array-bounds.c | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Rather than actual line numbers, do @-1 here instead (you can do relative values). That way all of these are easy to read when going back through these.