[llvm] da4baa9 - Fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 24 09:57:35 PDT 2022
Author: Simon Pilgrim
Date: 2022-10-24T17:55:01+01:00
New Revision: da4baa9ebe76c6ed405424a80b582473904a185e
URL: https://github.com/llvm/llvm-project/commit/da4baa9ebe76c6ed405424a80b582473904a185e
DIFF: https://github.com/llvm/llvm-project/commit/da4baa9ebe76c6ed405424a80b582473904a185e.diff
LOG: Fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
llvm/lib/Target/AArch64/AArch64InstrInfo.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.h b/llvm/lib/Target/AArch64/AArch64InstrInfo.h
index c24322295043c..c7fd94d1a9260 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.h
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.h
@@ -508,6 +508,7 @@ static inline unsigned getXPACOpcodeForKey(AArch64PACKey::ID K) {
case IA: case IB: return AArch64::XPACI;
case DA: case DB: return AArch64::XPACD;
}
+ llvm_unreachable("Unhandled AArch64PACKey::ID enum");
}
/// Return AUT opcode to be used for a ptrauth auth using the given key, or its
More information about the llvm-commits
mailing list