[clang] Performance optimizations for function effects (nonblocking attribute etc.) (PR #96844)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 27 07:48:03 PDT 2024
================
@@ -7623,6 +7623,7 @@ handleNonBlockingNonAllocatingTypeAttr(TypeProcessingState &TPState,
FunctionEffectSet FX(EPI.FunctionEffects);
FunctionEffectSet::Conflicts Errs;
bool Success = FX.insert(NewEC, Errs);
+ (void)Success;
----------------
AaronBallman wrote:
A better way to do this would be `[[maybe_unused]]` on the declaration instead of a cast to void.
https://github.com/llvm/llvm-project/pull/96844
More information about the cfe-commits
mailing list