This is an archive of the discontinued LLVM Phabricator instance.

[Clang][Sema] Check unexpected else statement in cond-update-stmt
ClosedPublic

Authored by tianshilei1992 on Feb 20 2022, 6:28 PM.

Details

Summary

In 'cond-update-stmt', else statement is not expected. This patch adds
the check in Sema.

Diff Detail

Event Timeline

tianshilei1992 requested review of this revision.Feb 20 2022, 6:28 PM
tianshilei1992 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 20 2022, 6:28 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Feb 21 2022, 5:10 AM
This revision was landed with ongoing or failed builds.Feb 21 2022, 5:20 AM
This revision was automatically updated to reflect the committed changes.