[PATCH] D155396: [Sema][ObjC] Invalidate BlockDecl with invalid return expr & its parent BlockExpr
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 24 02:37:46 PDT 2023
hokein accepted this revision.
hokein added a comment.
This revision is now accepted and ready to land.
thanks, looks good to me.
================
Comment at: clang/test/AST/ast-dump-recovery.m:24
+// CHECK-NEXT: | `-BlockDecl {{.*}} invalid
+int (^a)() = ^() {
+ return c;
----------------
nit: it'd be nice to encode the github issue number to the testcase here, for example (renaming the `a` to `gh63863` etc).
================
Comment at: clang/test/AST/ast-dump-recovery.m:25
+int (^a)() = ^() {
+ return c;
+};
----------------
nit: use a more descriptive name `return undef;`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155396/new/
https://reviews.llvm.org/D155396
More information about the cfe-commits
mailing list