[Mlir-commits] [mlir] 6aaf06f - [mlir][vector] Fix warning

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri May 7 17:13:11 PDT 2021


Author: thomasraoux
Date: 2021-05-07T17:12:47-07:00
New Revision: 6aaf06f92988c6e2b91f90ab7ed3a6d21981480a

URL: https://github.com/llvm/llvm-project/commit/6aaf06f92988c6e2b91f90ab7ed3a6d21981480a
DIFF: https://github.com/llvm/llvm-project/commit/6aaf06f92988c6e2b91f90ab7ed3a6d21981480a.diff

LOG: [mlir][vector] Fix warning

Previous change caused another warning in some build configuration:
"default label in switch which covers all enumeration values"

Added: 
    

Modified: 
    mlir/lib/Dialect/Vector/VectorTransforms.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Vector/VectorTransforms.cpp b/mlir/lib/Dialect/Vector/VectorTransforms.cpp
index fb97acbc1848..8c03cffe9418 100644
--- a/mlir/lib/Dialect/Vector/VectorTransforms.cpp
+++ b/mlir/lib/Dialect/Vector/VectorTransforms.cpp
@@ -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) {


        


More information about the Mlir-commits mailing list