From 3009cee75f04fb2bb28fbe7fc33cff3782c0f882 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 26 Dec 2019 18:29:54 -0800 Subject: [PATCH] Fix a -Wcovered-switch-default warning by moving the unreachable out of the covered switch. --- mlir/lib/Dialect/StandardOps/Ops.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mlir/lib/Dialect/StandardOps/Ops.cpp b/mlir/lib/Dialect/StandardOps/Ops.cpp index 831c78a..93c501e 100644 --- a/mlir/lib/Dialect/StandardOps/Ops.cpp +++ b/mlir/lib/Dialect/StandardOps/Ops.cpp @@ -696,9 +696,8 @@ static bool applyCmpPredicate(CmpIPredicate predicate, const APInt &lhs, return lhs.ugt(rhs); case CmpIPredicate::uge: return lhs.uge(rhs); - default: - llvm_unreachable("unknown comparison predicate"); } + llvm_unreachable("unknown comparison predicate"); } // Constant folding hook for comparisons. -- 2.7.4