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

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


  Branch: refs/heads/users/ojhunt/ptrauth-vs-trivial-relocation-codegen
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a6dc78b19f6ee6718d6c17bf1808224fb195545
      https://github.com/llvm/llvm-project/commit/7a6dc78b19f6ee6718d6c17bf1808224fb195545
  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