[PATCH] D75663: Fix a warning about an unreachable default in a switch statement.
Chris Lattner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 4 22:18:27 PST 2020
lattner created this revision.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini.
Herald added a project: LLVM.
lattner added reviewers: mehdi_amini, jpienaar, jahira8434.
lattner edited reviewers, added: rriddle; removed: jahira8434.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D75663
Files:
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
Index: mlir/lib/Dialect/StandardOps/IR/Ops.cpp
===================================================================
--- mlir/lib/Dialect/StandardOps/IR/Ops.cpp
+++ mlir/lib/Dialect/StandardOps/IR/Ops.cpp
@@ -695,8 +695,6 @@
return cmpResult == APFloat::cmpUnordered;
case CmpFPredicate::AlwaysTrue:
return true;
- default:
- llvm_unreachable("unknown comparison predicate");
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75663.248393.patch
Type: text/x-patch
Size: 401 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200305/7dcb77d6/attachment.bin>
More information about the llvm-commits
mailing list