[clang] nonblocking/nonallocating attributes (was: nolock/noalloc) (PR #84983)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu May 16 06:16:44 PDT 2024


================
@@ -3649,6 +3649,35 @@ FunctionProtoType::FunctionProtoType(QualType result, ArrayRef<QualType> params,
     auto &EllipsisLoc = *getTrailingObjects<SourceLocation>();
     EllipsisLoc = epi.EllipsisLoc;
   }
+
+  if (!epi.FunctionEffects.empty()) {
+    auto &ExtraBits = *getTrailingObjects<FunctionTypeExtraBitfields>();
+    const size_t EffectsCount = epi.FunctionEffects.size();
----------------
AaronBallman wrote:

```suggestion
    size_t EffectsCount = epi.FunctionEffects.size();
```

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


More information about the cfe-commits mailing list