This is an archive of the discontinued LLVM Phabricator instance.

[Sema] Diagnose array access preceding the array bounds even when the base type is incomplete.
ClosedPublic

Authored by riccibruno on Dec 22 2018, 5:30 AM.

Details

Summary

When the type of the base expression after IgnoreParenCasts is incomplete,
it is still possible to diagnose an array access which precedes the array bounds.

This is a follow-up on D55862 which added an early return when the type of
the base expression after IgnoreParenCasts was incomplete.

Diff Detail

Repository
rL LLVM

Event Timeline

riccibruno created this revision.Dec 22 2018, 5:30 AM

Friendly ping ?

efriedma accepted this revision.Jan 7 2019, 3:46 PM

LGTM

This revision is now accepted and ready to land.Jan 7 2019, 3:46 PM
This revision was automatically updated to reflect the committed changes.