Skip to content

Commit

Permalink
Fix MSVC "not all control paths return a value" warnings. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Oct 16, 2023
1 parent 8e53abc commit c0a7dd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/Target/AArch64/AArch64PointerAuth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ MachineBasicBlock &llvm::AArch64PAuth::checkAuthenticatedRegister(
.addMBB(BreakBlock);
return *SuccessBlock;
}
llvm_unreachable("Unknown AuthCheckMethod enum");
}

unsigned llvm::AArch64PAuth::getCheckerSizeInBytes(AuthCheckMethod Method) {
Expand All @@ -244,6 +245,7 @@ unsigned llvm::AArch64PAuth::getCheckerSizeInBytes(AuthCheckMethod Method) {
case AuthCheckMethod::XPACHint:
return 20;
}
llvm_unreachable("Unknown AuthCheckMethod enum");
}

bool AArch64PointerAuth::checkAuthenticatedLR(
Expand Down

0 comments on commit c0a7dd4

Please sign in to comment.