[PowerPC] Fix MSVC "switch statement contains 'default' but no 'case' labels" warning...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 15 Dec 2022 11:53:59 +0000 (11:53 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 15 Dec 2022 11:54:05 +0000 (11:54 +0000)
llvm/lib/Target/PowerPC/GISel/PPCRegisterBankInfo.cpp

index 43abbd6546533d47eb7e5e1988e6c1b05bb77130..af74ec98c5d3965944a89bb49952111f132f903d 100644 (file)
@@ -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