This is an archive of the discontinued LLVM Phabricator instance.

[CodeComplete] Fix crash when completing ObjC block parameter with a broken type
ClosedPublic

Authored by sammccall on Apr 4 2019, 3:48 AM.

Details

Summary

The fix isn't great, but it's hard to fix properly because the completion
code sensibly uses ParmVarDecl to represent parameters, but the AST-building
code sensibly doesn't synthesize them if the type is broken.
Also this case is apparently really rare, so it's probably not worth bending
over backwards for.

Diff Detail

Repository
rL LLVM

Event Timeline

sammccall created this revision.Apr 4 2019, 3:48 AM
This revision is now accepted and ready to land.Apr 4 2019, 4:27 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2019, 4:35 AM