From 49c371b319ee11f2fc7e47dfe73c0ef8136d0305 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Tue, 25 Aug 2020 23:08:43 +0000 Subject: [PATCH] Add llvm_unreachable after fully covered switch to silence some warnings from GCC (NFC) --- mlir/lib/Dialect/Vector/VectorOps.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mlir/lib/Dialect/Vector/VectorOps.cpp b/mlir/lib/Dialect/Vector/VectorOps.cpp index a0fd7a1..d3eebc3 100644 --- a/mlir/lib/Dialect/Vector/VectorOps.cpp +++ b/mlir/lib/Dialect/Vector/VectorOps.cpp @@ -1949,6 +1949,7 @@ public: case MaskFormat::Unknown: return failure(); } + llvm_unreachable("Unexpected 1DMaskFormat on MaskedLoad"); } }; } // namespace @@ -1994,6 +1995,7 @@ public: case MaskFormat::Unknown: return failure(); } + llvm_unreachable("Unexpected 1DMaskFormat on MaskedStore"); } }; } // namespace @@ -2042,6 +2044,7 @@ public: case MaskFormat::Unknown: return failure(); } + llvm_unreachable("Unexpected 1DMaskFormat on GatherFolder"); } }; } // namespace @@ -2085,6 +2088,7 @@ public: case MaskFormat::Unknown: return failure(); } + llvm_unreachable("Unexpected 1DMaskFormat on ScatterFolder"); } }; } // namespace @@ -2134,6 +2138,7 @@ public: case MaskFormat::Unknown: return failure(); } + llvm_unreachable("Unexpected 1DMaskFormat on ExpandLoadFolder"); } }; } // namespace @@ -2180,6 +2185,7 @@ public: case MaskFormat::Unknown: return failure(); } + llvm_unreachable("Unexpected 1DMaskFormat on CompressStoreFolder"); } }; } // namespace -- 2.7.4