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

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 12 01:01:26 PDT 2025


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

Why are these not bool? bad, bad @cor3ntin 

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


More information about the cfe-commits mailing list