[clang] [clang] Implement function pointer type discrimination (PR #96992)

Daniil Kovalev via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 28 08:14:25 PDT 2024


================
@@ -1283,6 +1283,9 @@ class ASTContext : public RefCountedBase<ASTContext> {
   uint16_t
   getPointerAuthVTablePointerDiscriminator(const CXXRecordDecl *RD);
 
+  /// Return the "other" type-specific discriminator for the given type.
+  uint16_t getPointerAuthTypeDiscriminator(QualType T);
----------------
kovdan01 wrote:

nit
```suggestion
  uint16_t getPointerAuthTypeDiscriminator(QualType T) const;
```

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


More information about the cfe-commits mailing list