This is an archive of the discontinued LLVM Phabricator instance.

[AST][RecoveryExpr] Don't preserve the return type if the FunctionDecl is invalid.
ClosedPublic

Authored by hokein on Aug 11 2020, 2:11 AM.

Details

Summary

If a functionDecl is invalid (e.g. return type cannot be formed), int is
use as he fallback type, which may lead to some bogus diagnostics.

Diff Detail

Event Timeline

hokein created this revision.Aug 11 2020, 2:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 11 2020, 2:11 AM
hokein requested review of this revision.Aug 11 2020, 2:11 AM
sammccall accepted this revision.Aug 11 2020, 2:38 AM
This revision is now accepted and ready to land.Aug 11 2020, 2:38 AM