If no valid interface definition was found previously we would crash.
With this change instead we just print <<error-type>> in place
of the NULL interface. In the future this could be improved by
saving the invalid interface's name and using that.
Paths
| Differential D83513
[AST][ObjC] Fix crash when printing invalid objc categories ClosedPublic Authored by dgoldman on Jul 9 2020, 2:37 PM.
Details Summary If no valid interface definition was found previously we would crash. With this change instead we just print <<error-type>> in place
Diff Detail
Unit TestsFailed Event Timelinegribozavr2 added inline comments.
This revision is now accepted and ready to land.Jul 10 2020, 11:04 AM Closed by commit rGea201e83e292: [AST][ObjC] Fix crash when printing invalid objc categories (authored by dgoldman). · Explain WhyJul 10 2020, 12:36 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 276841 clang/lib/AST/DeclPrinter.cpp
clang/unittests/AST/DeclPrinterTest.cpp
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
/*PolicyModifier=*/ (with equal sign) (also below for AllowError comments)