Skip to content

Commit 8a37522

Browse files
committed
Add static assertion against number of pauth flags
1 parent 732c4e6 commit 8a37522

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/tools/llvm-readobj/ELFDumper.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5165,6 +5165,9 @@ static bool printAArch64PAuthABICoreInfo(raw_ostream &OS, uint32_t DataSize,
51655165
? ""
51665166
: "!") +
51675167
"PointerAuthInitFini";
5168+
static_assert(AARCH64_PAUTH_PLATFORM_LLVM_LINUX_VERSION_INITFINI ==
5169+
AARCH64_PAUTH_PLATFORM_LLVM_LINUX_VERSION_LAST,
5170+
"Update when new enum items are defined");
51685171
}();
51695172

51705173
OS << format("platform 0x%x (%s), version 0x%x", Platform,

0 commit comments

Comments
 (0)