From c2b2472ca8c3abf272bdf24b5ce633f4bd27fbba Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 4 Mar 2020 22:06:54 -0800 Subject: [PATCH] Fix a warning about an unreachable default in a switch statement. Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D75663 --- mlir/lib/Dialect/StandardOps/IR/Ops.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mlir/lib/Dialect/StandardOps/IR/Ops.cpp b/mlir/lib/Dialect/StandardOps/IR/Ops.cpp index 8e7233e8acda..21314970c199 100644 --- a/mlir/lib/Dialect/StandardOps/IR/Ops.cpp +++ b/mlir/lib/Dialect/StandardOps/IR/Ops.cpp @@ -695,9 +695,8 @@ static bool applyCmpPredicate(CmpFPredicate predicate, const APFloat &lhs, return cmpResult == APFloat::cmpUnordered; case CmpFPredicate::AlwaysTrue: return true; - default: - llvm_unreachable("unknown comparison predicate"); } + llvm_unreachable("unknown comparison predicate"); } // Constant folding hook for comparisons.