File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8363,8 +8363,7 @@ NamedDecl *Sema::ActOnVariableDeclarator(
83638363 NewVD->isFunctionPointerType() && !NewVD->isExternallyVisible()) {
83648364 PointerAuthQualifier Q = NewVD->getType().getQualifiers().getPointerAuth();
83658365 if (!Q || (!Q.isAddressDiscriminated() && Q.getExtraDiscriminator() == 0)) {
8366- Diag(NewVD->getLocation(), diag::warn_ptrauth_weak_schema)
8367- << NewVD << (Q ? 0 : 1);
8366+ Diag(NewVD->getLocation(), diag::warn_ptrauth_weak_schema) << NewVD << !Q;
83688367 }
83698368 }
83708369
Original file line number Diff line number Diff line change 55
66#include <ptrauth.h>
77
8+ #if defined(__PTRAUTH__ ) == defined(NO_PTRAUTH )
9+ #error expected pointer authentication state does not match actual
10+ #endif
11+
812#if defined(NO_PTRAUTH )
913#define FN_PTR_AUTH (address_diversity , constant_discriminator )
1014#else
You can’t perform that action at this time.
0 commit comments