HomePhabricator

[Syntax] Remove a strict valid source location assertion for TypeLoc.

Authored by hokein on Feb 8 2021, 6:04 AM.

Description

[Syntax] Remove a strict valid source location assertion for TypeLoc.

The EndLoc of a type loc can be invalid for broken code.

Also extend the existing test to support error code with error-ok
annotation.

Differential Revision: https://reviews.llvm.org/D96261

Details