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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits