diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp index 2a947f3297749..eee963f2473c4 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp @@ -718,8 +718,10 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_ExpOp(SDNode *N) { : RTLIB::getLDEXP(N->getValueType(0)); assert(LC != RTLIB::UNKNOWN_LIBCALL && "Unexpected fpowi."); if (!TLI.getLibcallName(LC)) { +#ifndef NDEBUG RTLIB::Libcall NewLC = RTLIB::getPOW(N->getValueType(0)); assert(NewLC != RTLIB::UNKNOWN_LIBCALL && "Unexpected fpow type"); +#endif // Some targets don't have a powi libcall; use pow instead. // FIXME: Implement this if some target needs it.