[clang] [clang] Fix PointerAuth semantics of cpp_trivially_relocatable (PR #143796)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 12 02:00:31 PDT 2025


================
@@ -621,17 +621,24 @@ class ASTContext : public RefCountedBase<ASTContext> {
 
 public:
   struct CXXRecordDeclRelocationInfo {
+    static CXXRecordDeclRelocationInfo NonRelocatable() {
+      return {false, false};
+    }
+
     unsigned IsRelocatable;
     unsigned IsReplaceable;
----------------
ojhunt wrote:

I did wonder, but I assumed you had Reasons(tm)

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


More information about the cfe-commits mailing list