[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 15 06:07:20 PDT 2024
================
@@ -1370,7 +1381,7 @@ static void checkExprLifetimeImpl(Sema &SemaRef,
break;
}
- case IndirectLocalPathEntry::LambdaCaptureInit:
+ case IndirectLocalPathEntry::LambdaCaptureInit: {
----------------
higher-performance wrote:
It's not unrelated. If I take out the braces then the code won't compile due to the `case` skipping the declaration inside.
https://github.com/llvm/llvm-project/pull/112047
More information about the cfe-commits
mailing list