[clang] [clang][ptrauth] Add support for querying the ptrauth schema of a type (PR #138482)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Wed May 7 12:45:54 PDT 2025
================
@@ -9561,6 +9561,41 @@ class PointerExprEvaluator
return true;
}
+ bool VisitUnaryExprOrTypeTraitExpr(const UnaryExprOrTypeTraitExpr *E) {
+ // This is the only UETT we evaluate here.
+ assert(E->getKind() == UETT_PtrAuthSchemaOptions &&
+ "Unknown UnaryExprOrTypeTraitExpr");
+
+ // Note for review: there are other UETTs down the road
+ // that make a switch make sense, but for now this is the only
+ // one should this just be an
+ // if (E->getKind() != UETT_PtrAuthSchemaOptions)
+ // return false;
----------------
ojhunt wrote:
- [ ] todo
https://github.com/llvm/llvm-project/pull/138482
More information about the cfe-commits
mailing list