[llvm] Stop using __attribute__((retain)) in GCC builds (PR #133793)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 31 20:24:04 PDT 2025


================
@@ -231,8 +231,15 @@
 #endif
 
 #if __has_attribute(retain)
----------------
MaskRay wrote:

perhaps `defined(__clang__) && __has_attribute(retain)` and just don't check `__GNUC__`

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


More information about the llvm-commits mailing list