Skip to content

Commit ace3d30

Browse files
Add #ifndef NDEBUG/#endif around debug-only code. (#147356)
1 parent 5f1141d commit ace3d30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,10 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_ExpOp(SDNode *N) {
718718
: RTLIB::getLDEXP(N->getValueType(0));
719719
assert(LC != RTLIB::UNKNOWN_LIBCALL && "Unexpected fpowi.");
720720
if (!TLI.getLibcallName(LC)) {
721+
#ifndef NDEBUG
721722
RTLIB::Libcall NewLC = RTLIB::getPOW(N->getValueType(0));
722723
assert(NewLC != RTLIB::UNKNOWN_LIBCALL && "Unexpected fpow type");
724+
#endif
723725

724726
// Some targets don't have a powi libcall; use pow instead.
725727
// FIXME: Implement this if some target needs it.

0 commit comments

Comments
 (0)