[mlir][vector] Fix warning
authorthomasraoux <thomasraoux@google.com>
Sat, 8 May 2021 00:10:35 +0000 (17:10 -0700)
committerthomasraoux <thomasraoux@google.com>
Sat, 8 May 2021 00:12:47 +0000 (17:12 -0700)
Previous change caused another warning in some build configuration:
"default label in switch which covers all enumeration values"

mlir/lib/Dialect/Vector/VectorTransforms.cpp

index fb97acb..8c03cff 100644 (file)
@@ -3791,9 +3791,8 @@ struct TwoDimMultiReductionToReduction
         return "or";
       case vector::CombiningKind::XOR:
         return "xor";
-      default:
-        llvm_unreachable("unknown combining kind");
       }
+      llvm_unreachable("unknown combining kind");
     };
 
     for (int i = 0; i < outerDim; ++i) {