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:
Chris Lattner 2020-03-04 22:06:54 -08:00
parent d7267ee194
commit c2b2472ca8
1 changed files with 1 additions and 2 deletions

View File

@ -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.