[clang] [Clang] Deprecate `__is_trivially_relocatable` (PR #138835)

via cfe-commits cfe-commits at lists.llvm.org
Wed May 7 02:30:02 PDT 2025


================
@@ -89,15 +96,18 @@ static_assert(!__is_trivially_constructible(S4, const S4&));
 static_assert(!__is_trivially_assignable(S4, const S4&));
 static_assert(__is_trivially_destructible(S4));
 static_assert(!__is_trivially_copyable(S4));
-static_assert(!__is_trivially_relocatable(S4));
+static_assert(!__is_trivially_relocatable(S4)); // expected-warning{{deprecated}}
+//FIXME
+static_assert(__builtin_is_cpp_trivially_relocatable(S4));
----------------
cor3ntin wrote:

@ojhunt I think fixing that depends on https://github.com/llvm/llvm-project/pull/138482 

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


More information about the cfe-commits mailing list