[clang] nolock/noalloc attributes (PR #84983)

via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 14 17:40:48 PDT 2024


Sirraide wrote:

> I've probably been staring at this way too long, but here's what's going on. My test is:

My bad, I remember looking into this yesterday or the day before; from what I could tell, it seems I may have forgotten to share what I found here: I think the problem is that the code paths for C++ and C are very different; C++ calls `isFunctionConversion`, and then just moves on w/ its life and treats it as a standard conversion, whereas C uses it to check for incompatible pointer conversions; have you tried maybe simply not setting `Changed` to `true` (perhaps only in C mode)?



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


More information about the cfe-commits mailing list