[PATCH] D83513: [AST][ObjC] Fix crash when printing invalid objc categories

2020-07-10 Thread David Goldman via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGea201e83e292: [AST][ObjC] Fix crash when printing invalid objc categories (authored by dgoldman). Changed prior to commit: https://reviews.llvm.org/D83513?vs=276841&id=277126#toc Repository: rG LLVM

[PATCH] D83513: [AST][ObjC] Fix crash when printing invalid objc categories

2020-07-10 Thread Dmitri Gribenko via Phabricator via cfe-commits
gribozavr2 accepted this revision. gribozavr2 added inline comments. This revision is now accepted and ready to land. Comment at: clang/unittests/AST/DeclPrinterTest.cpp:180 + return PrintedDeclMatches(Code, Args, NodeMatch, ExpectedPrinted, "input.m", +

[PATCH] D83513: [AST][ObjC] Fix crash when printing invalid objc categories

2020-07-09 Thread David Goldman via Phabricator via cfe-commits
dgoldman created this revision. dgoldman added reviewers: sammccall, gribozavr. Herald added a project: clang. Herald added a subscriber: cfe-commits. If no valid interface definition was found previously we would crash. With this change instead we just print `<>` in place of the NULL interface.