Skip to content

Commit 934ba0d

Browse files
committed
[InstCombine] Handle missing cases in visitFCmpInst
Fiix buildbot failures.
1 parent 4f381af commit 934ba0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7767,6 +7767,8 @@ Instruction *InstCombinerImpl::visitFCmpInst(FCmpInst &I) {
77677767
const APFloat *C;
77687768
if (match(Op1, m_APFloat(C)) && C->isInfinity()) {
77697769
switch (C->isNegative() ? FCmpInst::getSwappedPredicate(Pred) : Pred) {
7770+
default:
7771+
break;
77707772
case FCmpInst::FCMP_ORD:
77717773
case FCmpInst::FCMP_UNO:
77727774
case FCmpInst::FCMP_TRUE:

0 commit comments

Comments
 (0)