File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -5939,6 +5939,8 @@ class VarDecl : public AbstractStorageDecl {
5939
5939
});
5940
5940
}
5941
5941
5942
+ clang::PointerAuthQualifier getPointerAuthQualifier () const ;
5943
+
5942
5944
// Implement isa/cast/dyncast/etc.
5943
5945
static bool classof (const Decl *D) {
5944
5946
return D->getKind () == DeclKind::Var || D->getKind () == DeclKind::Param;
Original file line number Diff line number Diff line change @@ -44,3 +44,12 @@ bool VarDecl::isTypeWrapperLocalStorageForInitializer() const {
44
44
}
45
45
return false ;
46
46
}
47
+
48
+ clang::PointerAuthQualifier VarDecl::getPointerAuthQualifier () const {
49
+ if (auto *clangDecl = getClangDecl ()) {
50
+ if (auto *valueDecl = dyn_cast<clang::ValueDecl>(clangDecl)) {
51
+ return valueDecl->getType ().getPointerAuth ();
52
+ }
53
+ }
54
+ return clang::PointerAuthQualifier ();
55
+ }
You can’t perform that action at this time.
0 commit comments