================ @@ -5119,6 +5448,62 @@ class FunctionProtoType final return false; } + unsigned getNumFunctionEffects() const { + return hasExtraBitfields() + ? getTrailingObjects<FunctionTypeExtraBitfields>() + ->NumFunctionEffects + : 0; + } + + // For serialization. + ArrayRef<FunctionEffect> getFunctionEffectsOnly() const { ---------------- Sirraide wrote:
I’d call this `getFunctionEffectsWithoutConditions()` or something like that because ‘only’ is really confusing imo. https://github.com/llvm/llvm-project/pull/84983 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits