File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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" );
You can’t perform that action at this time.
0 commit comments