[llvm] 5e9910f - [PowerPC] Fix MSVC "switch statement contains 'default' but no 'case' labels" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 15 03:54:18 PST 2022
Author: Simon Pilgrim
Date: 2022-12-15T11:54:05Z
New Revision: 5e9910fd1c3897fe4f87a4b979b9e50f07ef9419
URL: https://github.com/llvm/llvm-project/commit/5e9910fd1c3897fe4f87a4b979b9e50f07ef9419
DIFF: https://github.com/llvm/llvm-project/commit/5e9910fd1c3897fe4f87a4b979b9e50f07ef9419.diff
LOG: [PowerPC] Fix MSVC "switch statement contains 'default' but no 'case' labels" warning. NFC.
Added:
Modified:
llvm/lib/Target/PowerPC/GISel/PPCRegisterBankInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/GISel/PPCRegisterBankInfo.cpp b/llvm/lib/Target/PowerPC/GISel/PPCRegisterBankInfo.cpp
index 43abbd6546533..af74ec98c5d39 100644
--- a/llvm/lib/Target/PowerPC/GISel/PPCRegisterBankInfo.cpp
+++ b/llvm/lib/Target/PowerPC/GISel/PPCRegisterBankInfo.cpp
@@ -210,10 +210,7 @@ static bool isPreISelGenericFloatingPointOpcode(unsigned Opc) {
/// \returns true if a given intrinsic \p ID only uses and defines FPRs.
static bool isFPIntrinsic(unsigned ID) {
// TODO: Add more intrinsics.
- switch (ID) {
- default:
- return false;
- }
+ return false;
}
/// FIXME: this is copied from target AArch64. Needs some code refactor here to
More information about the llvm-commits
mailing list