[llvm] 14c87ab - Fix MSVC "'llvm::AArch64PACKeyIDToString': not all control paths return a value" warning. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 24 09:58:04 PDT 2023


Author: Simon Pilgrim
Date: 2023-08-24T17:55:33+01:00
New Revision: 14c87ab7635ae151621b5e28aeff101235a0435f

URL: https://github.com/llvm/llvm-project/commit/14c87ab7635ae151621b5e28aeff101235a0435f
DIFF: https://github.com/llvm/llvm-project/commit/14c87ab7635ae151621b5e28aeff101235a0435f.diff

LOG: Fix MSVC "'llvm::AArch64PACKeyIDToString': not all control paths return a value" warning. NFC.

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h b/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
index a43b1cf0dd0ed0..976e72e8aae47f 100644
--- a/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
+++ b/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
@@ -830,6 +830,7 @@ inline static StringRef AArch64PACKeyIDToString(AArch64PACKey::ID KeyID) {
   case AArch64PACKey::DB:
     return StringRef("db");
   }
+  llvm_unreachable("Unhandled AArch64PACKey::ID enum");
 }
 
 /// Return numeric key ID for 2-letter identifier string.


        


More information about the llvm-commits mailing list