[PATCH] D155396: [Sema][ObjC] Propagating value-dependent errors into BlockExpr

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 20 10:52:06 PDT 2023


aaron.ballman added a comment.

This looks pretty good to me. Can you also add a release note for the fix to `clang/docs/ReleaseNotes.rst`?



================
Comment at: clang/lib/Sema/SemaStmt.cpp:3733-3734
 
+  BlockScopeInfo *CurBlock = dyn_cast<BlockScopeInfo>(CurCap);
+  if (CurBlock && CurCap->HasImplicitReturnType) {
+    BlockDecl *BD = CurBlock->TheDecl;
----------------
  if (auto *CurBlock = dyn_cast<BlockScopeInfo>(CurCap); CurBlock && CurCap->HasImplicitReturnType) {


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