forked from OSchip/llvm-project
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
This commit is contained in:
parent
d7267ee194
commit
c2b2472ca8
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue