Skip to content

Commit c0a7dd4

Browse files
committed
Fix MSVC "not all control paths return a value" warnings. NFC.
1 parent 8e53abc commit c0a7dd4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/AArch64/AArch64PointerAuth.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ MachineBasicBlock &llvm::AArch64PAuth::checkAuthenticatedRegister(
231231
.addMBB(BreakBlock);
232232
return *SuccessBlock;
233233
}
234+
llvm_unreachable("Unknown AuthCheckMethod enum");
234235
}
235236

236237
unsigned llvm::AArch64PAuth::getCheckerSizeInBytes(AuthCheckMethod Method) {
@@ -244,6 +245,7 @@ unsigned llvm::AArch64PAuth::getCheckerSizeInBytes(AuthCheckMethod Method) {
244245
case AuthCheckMethod::XPACHint:
245246
return 20;
246247
}
248+
llvm_unreachable("Unknown AuthCheckMethod enum");
247249
}
248250

249251
bool AArch64PointerAuth::checkAuthenticatedLR(

0 commit comments

Comments
 (0)