[all-commits] [llvm/llvm-project] d8d6f8: [PAC][clang] Correct handling of ptrauth queries o...

Oliver Hunt via All-commits all-commits at lists.llvm.org
Tue Oct 21 18:27:46 PDT 2025


  Branch: refs/heads/users/ojhunt/fix-ptrauth-queries-with-nested-incomplete-types
  Home:   https://github.com/llvm/llvm-project
  Commit: d8d6f89e5c43b2a02847ca6da724cfb657d477a9
      https://github.com/llvm/llvm-project/commit/d8d6f89e5c43b2a02847ca6da724cfb657d477a9
  Author: Oliver Hunt <oliver at apple.com>
  Date:   2025-10-21 (Tue, 21 Oct 2025)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp
    A clang/test/SemaCXX/ptrauth-nested-incomplete-types.cpp

  Log Message:
  -----------
  [PAC][clang] Correct handling of ptrauth queries of incomplete types

In normal circumstances we can never get to this point as earlier
Sema checks will have already have prevented us from making these
queries. However in some cases, for example a sufficiently large
number of errors, clang can start allowing incomplete types in
records.

This means a number of the internal interfaces can end up perform
type trait queries that require querying the pointer authentication
properties of types that contain incomplete types. While the trait
queries attempt to guard against incomplete types, those tests fail
in this case as the incomplete types are actually nested in the
seemingly complete parent type.



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