summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-12-26 18:29:54 -0800
committerEric Christopher <echristo@gmail.com>2019-12-26 18:29:54 -0800
commit3009cee75f04fb2bb28fbe7fc33cff3782c0f882 (patch)
treedbbfac3d4ccb9f1422172346ff28051e49350900
parent30617e4b9c871882c6fc765d12eb85c1aba87139 (diff)
downloadbcm5719-llvm-3009cee75f04fb2bb28fbe7fc33cff3782c0f882.tar.gz
bcm5719-llvm-3009cee75f04fb2bb28fbe7fc33cff3782c0f882.zip
Fix a -Wcovered-switch-default warning by moving the unreachable out of the
covered switch.
-rw-r--r--mlir/lib/Dialect/StandardOps/Ops.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/mlir/lib/Dialect/StandardOps/Ops.cpp b/mlir/lib/Dialect/StandardOps/Ops.cpp
index 831c78a4521..93c501eea56 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.
OpenPOWER on IntegriCloud