[llvm] [NFC][AtomicExpandPass] Improve atomic expand error messages (PR #188380)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 25 08:16:14 PDT 2026


https://github.com/boomanaiden154 commented:

This change is by defintion not NFC given it changes observable behavior of the compiler (the text of the generated warnings).

It would also be good if we can avoid constructing a string in `atomicSizeSupported`, storing it in the parent scope, and then passing it down into the expansion functions. Given the expansion functions modified here only seem to be called within wrapping if statements asking `atomicSizeSupported`, we might be able to inline those into the expansion functions which would let us just pass a Twine down to `handleFailure`.

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


More information about the llvm-commits mailing list