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

via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 12 17:49:19 PDT 2024


================
@@ -5153,6 +5156,7 @@ bool FunctionEffect::shouldDiagnoseFunctionCall(
 // =====
 
 void FunctionEffectSet::Profile(llvm::FoldingSetNodeID &ID) const {
+  ID.AddInteger(size());
   if (PImpl)
     for (const auto &Effect : *PImpl)
       ID.AddInteger(llvm::to_underlying(Effect.kind()));
----------------
Sirraide wrote:

Yeah, so long as this loop always adds exactly `size()` many effects, it should be fine.

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


More information about the cfe-commits mailing list