[all-commits] [llvm/llvm-project] b43a7e: [clang][PAC] Support trivially_relocating polymorp...

Oliver Hunt via All-commits all-commits at lists.llvm.org
Mon Jun 16 12:37:56 PDT 2025


  Branch: refs/heads/users/ojhunt/ptrauth-vs-trivial-relocation-codegen
  Home:   https://github.com/llvm/llvm-project
  Commit: b43a7e9295dfdbe0a11fb7dff669b82d8ed0630c
      https://github.com/llvm/llvm-project/commit/b43a7e9295dfdbe0a11fb7dff669b82d8ed0630c
  Author: Oliver Hunt <oliver at apple.com>
  Date:   2025-06-16 (Mon, 16 Jun 2025)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/CodeGen/CGPointerAuth.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    A clang/test/CodeGenCXX/cxx2c-trivially-relocatable-ptrauth.cpp
    M clang/test/SemaCXX/trivially-relocatable-ptrauth.cpp

  Log Message:
  -----------
  [clang][PAC] Support trivially_relocating polymorphic objects

Adds support for trivial relocation of polymorphic objects with
address discriminated vtable pointers.

This is implemented as a post-memmove fixup pass over the impacted
objects. We do this by traversing the object graph and finding all
the vtable slots in the type being relocated, or any of the
subobjects.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list