Skip to content

Commit f991879

Browse files
committed
Revert for compare predicate case
1 parent 67d0403 commit f991879

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/include/llvm/IR/RuntimeLibcalls.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ struct RuntimeLibcallsInfo {
105105
/// Stores the name each libcall.
106106
const char *LibcallRoutineNames[RTLIB::UNKNOWN_LIBCALL + 1] = {nullptr};
107107

108+
static_assert(static_cast<int>(CallingConv::C) == 0,
109+
"default calling conv should be encoded as 0");
110+
108111
/// Stores the CallingConv that should be used for each libcall.
109112
CallingConv::ID LibcallCallingConvs[RTLIB::UNKNOWN_LIBCALL] = {
110113
CallingConv::C};
@@ -115,8 +118,7 @@ struct RuntimeLibcallsInfo {
115118
// FIXME: This is only relevant for the handful of floating-point comparison
116119
// runtime calls; it's excessive to have a table entry for every single
117120
// opcode.
118-
CmpInst::Predicate SoftFloatCompareLibcallPredicates[RTLIB::UNKNOWN_LIBCALL] =
119-
{CmpInst::BAD_ICMP_PREDICATE};
121+
CmpInst::Predicate SoftFloatCompareLibcallPredicates[RTLIB::UNKNOWN_LIBCALL];
120122

121123
static bool darwinHasSinCosStret(const Triple &TT) {
122124
assert(TT.isOSDarwin() && "should be called with darwin triple");

0 commit comments

Comments
 (0)