[clang] [Clang] Fix handling of immediate escalation for inherited constructors (PR #112860)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 18 02:24:32 PDT 2024


================
@@ -3304,6 +3311,12 @@ bool FunctionDecl::isImmediateFunction() const {
   if (isImmediateEscalating() && BodyContainsImmediateEscalatingExpressions())
     return true;
 
+  if (auto *CD = dyn_cast<CXXConstructorDecl>(this);
----------------
tbaederr wrote:

```suggestion
  if (const auto *CD = dyn_cast<CXXConstructorDecl>(this);
```

https://github.com/llvm/llvm-project/pull/112860


More information about the cfe-commits mailing list